Hi, The mdtoc is a plugin used in Atom Gui, to maintain one index automatically. The command to convert from md to html is: pandoc -f gfm --self-contained -t html -o file.html file.md In the html appears this mdtoc comment and the other javascript function. For convert to odt pandoc -f html -t odt -o file.odt file.html