问题描述
我已经手动转换物品进入降价的语法了几天,现在,它变得相当繁琐。其中有些是3或4页,斜体和整个其他强调文本。是否有转换格式(.rtf | .DOC)一个更快的方法?要清除的文件降价语法,我可以利用
I've been manually converting articles into Markdown syntax for a few days now, and it's getting rather tedious. Some of these are 3 or 4 pages, italics and other emphasized text throughout. Is there a faster way to convert (.rtf|.doc) files to clean Markdown Syntax that I can take advantage of?
推荐答案
如果你恰巧是在Mac上, textutil
做转换DOC,DOCX的好工作,和RTF到HTML和pandoc确实生成的HTML转换为降价的好工作:
If you happen to be on a mac, textutil
does a good job of converting doc, docx, and rtf to html, and pandoc does a good job of converting the resulting html to markdown:
$ textutil -convert html file.doc -stdout | pandoc -f html -t markdown -o file.md
我有一个的,我扔在一起了一段时间后,试图用textutil,PDF2HTML和pandoc到任何我转换它扔降价。
I have a script that I threw together a while back that tries to use textutil, pdf2html, and pandoc to convert whatever I throw at it to markdown.
这篇关于快速转换格式(.rtf | .DOC)文件,以降价语法与PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!