Subject: Issues with section editing; possible because macros plugin
Hello,
I have 2 wikis powered by DokuWiki, and I have noticed, that sometimes section editing works, and other times it doesn't work (i.e. the "Edit" buttons don't appear. I have DokuWiki Adora Belle + the standar "dokuwiki" template. But I have seen this problem on my other wiki as well: Angua + arctic-mbo template.
The issue seems to appear in pages where I use the macros plugin. E.g.
It's interesting that even if I escape the $ in the above line, and surround it with <nowiki> tags, the macro isn't executed and the text is displayed as-is, but the section editing still doesn't work; e.g.:
On the plugin:macro page ( https://www.dokuwiki.org/plugin:macros#bug_report ), someone else tried to look, ending up with the following conclusion:
Have you got any ideea what is happening? Or at least some pointers on why that may happen, so I can start digging in the macros plugin? I mean why the processing of this plugin would mess the dokuwiki logic that counts sections? The fact that the rendering of the macro changes the length of the text (cf. the quote above) shouldn't be an issue, because all syntax plugins are expected to do so: i.e. replace the wiki syntax with a text having an unknown length.
Thank you in advance.
Best regards,
Cristian.
I have 2 wikis powered by DokuWiki, and I have noticed, that sometimes section editing works, and other times it doesn't work (i.e. the "Edit" buttons don't appear. I have DokuWiki Adora Belle + the standar "dokuwiki" template. But I have seen this problem on my other wiki as well: Angua + arctic-mbo template.
The issue seems to appear in pages where I use the macros plugin. E.g.
$myMacro
It's interesting that even if I escape the $ in the above line, and surround it with <nowiki> tags, the macro isn't executed and the text is displayed as-is, but the section editing still doesn't work; e.g.:
<nowiki>
`$myMacro
</nowiki>
`$myMacro
</nowiki>
On the plugin:macro page ( https://www.dokuwiki.org/plugin:macros#bug_report ), someone else tried to look, ending up with the following conclusion:
if a macro is processed, that changes the length of a section text. It may even generate new sections! I could not find how to make dokuwiki adjust the sections (and positions of edit buttons) properly
Have you got any ideea what is happening? Or at least some pointers on why that may happen, so I can start digging in the macros plugin? I mean why the processing of this plugin would mess the dokuwiki logic that counts sections? The fact that the rendering of the macro changes the length of the text (cf. the quote above) shouldn't be an issue, because all syntax plugins are expected to do so: i.e. replace the wiki syntax with a text having an unknown length.
Thank you in advance.
Best regards,
Cristian.