Is there a way to make the markup "transparent" the rest of DokuWiki? For example, having a page like this:
Text 1
~~MYMARKUP~~
Text 1
~~MYMARKUP~~
Text 3
Produces the following HTML:
<p>
Text 1
</p>
<p>
My markup replacement
</p>
<p>
Text 1
</p>
<p>
My markup replacement
</p>
<p>
Text 3
</p>
where the paragraph marks are generated by some different (paragraph?) mode. The idea is to achieve the following:
<p>
Text 1
</p>
My markup replacement
<p>
Text 1
</p>
My markup replacement
<p>
Text 3
</p>
I see people trying to combat it by including paragraph closing tag into the replacement (i.e. "</p>My markup replacement"), which seems to work in some cases, but not always. For example:
Text 1
~~MYMARKUP~~
Text 1
~~MYMARKUP~~
Text 3
Normally produces:
<p>
Text 1
My markup replacement
Text 1
My markup replacement
Text 3
</p>
and with those additional closing tags it renders into a bunch of invalid HTML. Sure browsers can deal with that but it really looks like a hack. The ideal situation would be to completely ignore the plugin markup, so for the rest of the modes the page looks like:
Text 1
Text 1
Text 3