41

Does there exist open source LaTeX converters that produce Markdown, in the same manner tools like latex2html does?

1
  • 6
    pandoc is often mentioned.
    – Johannes_B
    Dec 1, 2016 at 18:00

2 Answers 2

43

Pandoc is what you need. This tool helps you convert any markup format to another one including from latex to markdown.

For your need, first you need to install pandoc into your system (available for all MacOS, Windows, Linux) and then use this command line

pandoc -s example4.tex -o example5.md

You can also convert your texts online by using a tool provided here.

4
  • 3
    The issue is that it does not show the images and also does not support multiple column style ...
    – Foad
    Dec 18, 2018 at 11:45
  • 2
    Shouldn't it be pandoc -s example4.tex -o example5.md
    – Tom Kelly
    Jan 30, 2020 at 8:31
  • 1
    On Windows, you can install pandoc very easily using scoop Mar 12, 2020 at 19:08
  • This worked as a very half-way solution for me. Had to do a bit of revision afterwards, but it definitely saved me some time compared to doing the whole job manually May 24 at 12:51
6

Yes.

This project, https://github.com/loopspace/latex-to-internet, provides a class which produces text output in a variety of different formats. It comes with a huge number of caveats, but it does work.

The underlying principle is that "The only thing that understands TeX is TeX itself" so it uses TeX to parse the document and produce the desired output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.