Quickly Convert (.rtf|.doc) Files to Markdown Syntax with PHP

后端 未结 7 1895
轮回少年
轮回少年 2021-01-29 18:50

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 t

7条回答
  •  野性不改
    2021-01-29 19:15

    As part of the university ruby course I developed a tool which can convert openoffice word files (.odt) to markdown. A lot of assumptions has to be made in order to turn it to correct formatting. For example it is hard to determine the size of a text which has to be considered as Heading. However the only think that you can loose with this conversion is the formatting any text that is met is always appends to the markdown document. The tool I've developed supports lists, bold and italic text, and it has syntax for tables.

    http://github.com/bostko/doc2text Give it a try and please give me your feedback.

提交回复
热议问题