Just because Markdown is so simple (well, “simple”), there will definitely be useful features missing. I want to share some of my relatively simple JS tricks to fill the gaps. Please note that I’m only talking about the HTML output, and the Markdown flavor can be arbitrary (it doesn’t have to be Pandoc’s Markdown). In fact, all tricks below are general-purpose and will work on any web pages, no matter if the pages are generated from Markdown or not.

How to work …