fta-to-markdown-converter

所属分类:代码编辑器
开发工具:Shell
文件大小:3KB
下载次数:0
上传日期:2021-12-13 10:14:42
上 传 者sh-1993
说明:  fta到降价转换器,,
(fta-to-markdown-converter,,)

文件列表:
LICENSE (1091, 2021-12-13)
filter.py (1894, 2021-12-13)
requirements-dev.txt (13, 2021-12-13)
requirements.txt (36, 2021-12-13)

# FTA to Markdown converter A Pandoc filter to convert FTA docx chapter files into Markdown files. ## Installation [Install Pandoc](https://pandoc.org/installing.html) for your operating system. Then install the Python requirements. $ pip install -r requirements.txt ## Usage $ pandoc -s chapter1.docx -t json | ./filter.py stream | pandoc -s -f json -o chapter1.md ## What it does It converts docx files into Markdown files. It takes the Pandoc AST JSON and applies a filter to it attempting to convert the relevant elements from the original Word document into the corresponding Markdown. At present this consists of stripping out unwanted formatting as well as marking up headings correctly. ## What it doesn't do The main thing it doesn't do at present is lists. Any additional work on this filter should look at translating the lists from docx into Markdown. The translation of lists is especially problematic as the lists in the docx aren't actually formatted as real lists so all that can be relied upon is the numbering system of the lists to know when a list has begun, this is somewhat simple for top level lists but gets complicated when we want to handle lists within lists.

近期下载者

相关文件


收藏者