以 markdown 格式导出文本文档

Export text document in markdown format

我需要能够 save/export/convert 将富文本格式或 docx 文档转换为 markdown(例如 "readme.md")。

下一步需要将这些 .md 文件转换为 HTML 并将它们作为静态文档公开在网站上。

我将使用带有 doctor-md to convert those files and cheerio 的 NodeJs 来抓取生成的 html 并将其插入到现有模板中。

到目前为止:

关于如何轻松生成这些 md 文件有什么建议吗?

谢谢

你试过用https://stackedit.io/? It converts html (or text) into markdown and doesn't require using Git. You can access it on their website or using the Chrome app. You can create titles and lists in the editor here吗,它会以markdown格式显示相应的文字。然后您可以保存、发布、共享或下载该文件。