taharqa taharqa - 3 years ago 387
Markdown Question

Convert asciidoc to markdown

I have a specific use case where I need to convert asciidoc to markdown.
I want my entire documentation written in asciidoc, but I want use static site generator using that content.
Those static site generator use markdown.

Do you know a way to handle this conversion ?

Answer Source

like ACP told above, there is a small description under: https://tinyapps.org/blog/nix/201701240700_convert_asciidoc_to_markdown.html

For me the following command worked:

asciidoc -b docbook README.adoc
iconv -t utf-8 README.xml | pandoc -f docbook -t markdown_github --wrap=none | iconv -f utf-8 > README.md
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download