How can doc/docx files be converted to markdown or structured text?

后端 未结 11 861
难免孤独
难免孤独 2021-01-29 21:45

Is there a program or workflow to convert .doc or .docx files to Markdown or similar text?

PS: Ideally, I would welcome the option that a spec

11条回答
  •  梦毁少年i
    2021-01-29 22:29

    You can convert Word documents from within MS Word to Markdown using this Visual Basic Script:

    https://gist.github.com/hawkrives/2305254

    Follow the instructions under "To use the code" to create a new Macro in Word.

    Note: This converts the currently open Word document ato Markdown, which removes all the Word formatting (headings, lists, etc.). First save the Word document you plan to converts, and then save the document again as a new document before running the macro. This way you can always go back to the original Word document to make changes.

    There are more examples of Word to markdown VB scripts here:

    https://www.mediawiki.org/wiki/Microsoft_Word_Macros

提交回复
热议问题