Include `macro` in content

I found a workaround to use macros in markdown:

  • define a string that will be replaced (example [TOC] or [GALLERY])
  • define a macro that replace the string by a macro call
  • wrap your content in the replacement macro

You have examples in my seagull theme: