Search code examples
macrosdokuwiki

how to enable MACRO feature in the Dokuwiki <code> block


I am using the textinsert plugin to perform macro functionality in Dokuwiki.

It works for most of the occasion but failed in the <code> block. The macro syntax #@MACRO_HTML@# output as-is and this behavior is not favorable.

#@MACRO_HTML@#

The idea behavior should be that the #@MACRO_HTML@# is replaced with text like "this is the favorable text" in the wiki page.

this is the macro text

Please show me a way to enable macro functionality within the <code> block for Dokuwiki.


Solution

  • Looking at the code of Dokuwiki, we see that the <code> mode doesn't accept any other mode.

    Hence it's not possible to use another plugin inside a <code> block.