Skip to content

Pandoc

Pandoc Awesomeness

Convert HTML to Markdown

1
2
3
pandoc -f html -t markdown myfile.html >myfile.md
# OR
pandoc -f html -t 'markdown_strict+pipe_tables' myfile.html >myfile.md
Warning

The above commands will only convert simple tables to proper Markdown. Multi-Line or Block tables will just be rendered as HTML, which is still valid in MkDocs!

Convert docx to Markdown

1
pandoc -s example30.docx --wrap=none --reference-links -t markdown -o example35.md