dokufreaks / plugin-comment

http://dokuwiki.org/plugin:comment
GNU General Public License v2.0
9 stars 3 forks source link

Comments inside comments in a nowiki-tag does not render properly #15

Open erik-alm opened 2 years ago

erik-alm commented 2 years ago

The following code does not work:

This is some text.

/* <nowiki>

This is no-wikied and commented-out text

/* This is a comment in a no wiki comment */

</nowiki> */

Results in the following:

This is some text.

</nowiki> */ 

I expected:

This is some text.
Klap-in commented 2 years ago

This is a design choice, should /* */ have always priority above <nowiki> or not?

<nowiki>(=unformatted) has a sort value of 170.

The comment plugin has a sort value of 321. The lowest sort value goes first. (see also https://www.dokuwiki.org/devel:parser:getsort_list and https://www.dokuwiki.org/devel:syntax_plugins#sort_number)

Another case where the comment syntax was recognized later then the syntax of the wrap plugin is here: https://github.com/selfthinker/dokuwiki_plugin_wrap/issues/227