Search code examples
pandoc

Pandoc markdown conversion with == highlighting


I am using Typora Markdown text editor wherein highlighting text is done with ==[...]== operation. This is also the case for many other Markdown editors such as Obsidian, Quilt, iA Writer, etc.

What is a way for pandoc to convert the == highlighting when converting to a pdf file ?

Sample.md

==Testing==

Then performing pandoc Sample.md -o test.pdf produces a pdf with "==Testing=="


Solution

  • The short answer is: there isn't one, highlighting syntax is currently not supported by pandoc. For more details, refer to the related discussion on the pandoc mailing list.

    The long answer is that you could write a Lua filter or even a custom Markdown parser to add support for various features, but that's non-trivial in this case.