开发者

Python: Convert HTML to AsciiDoc

开发者 https://www.devze.com 2023-03-28 20:14 出处:网络
I am looking for a Python tool to convert html into AsciiDoc markup. Than开发者_StackOverflow中文版ks!Not a tool based in Python, but in Haskell: http://johnmacfarlane.net/pandoc/ - this awesome tool

I am looking for a Python tool to convert html into AsciiDoc markup.

Than开发者_StackOverflow中文版ks!


Not a tool based in Python, but in Haskell: http://johnmacfarlane.net/pandoc/ - this awesome tool can transform as many formats as you can imagine. Highly recommended.


I don't think such a tool exists, because of the flexible structure of HTML files.

But you can easily write one. If you know the specific format of an HTML document, just parse html and construct the desired AsciiDoc.


We are developing to-asciidoc project. https://github.com/asciidocfx/to-asciidoc

0

精彩评论

暂无评论...
验证码 换一张
取 消