LaTeX like macro for markdown

tl;dr: I made a simple macro system for my blog. Now I juste have to write %latex and it show as LaTeX.

I added a macro system for my blog system. When we are used to LaTeX this lack can be hard to handle. Particularly when using mathematical notations. In the header of my files I simply write:

In the body it will replace every occurrence of:

  • %test by Just a test,
  • and %latex by LaTeX.

The source code is really simple. For nanoc user, simply put this file in your lib directory.

Macros could be very useful, read this article for example.