Brand new wiki from github, zero plugin and a minimalistic syntax/substitution plugin (attached) : text between <tag> </tag> in wiki page is rendered as <pre></pre> in html. The code logs everything in file /tmp/y.
It appears I misunderstood what is happening, but the page is still parsed twice.
When I save a page, here is what happens
parse, render metadata, render xhtml, parse, render metadata.
Again, I'm just curious.
-------------
When I save this
====== test ======
<tag>
bla ble bliiii
</tag>
I get this log
-----
connecting to mode base
connecting to mode listblock
connecting to mode table
connecting to mode footnote
connecting to mode quote
handling LEXER_ENTER {{<tag>}} args : >><<
handling CONTENT >>
bla ble bliii
<<
handling LEXER_EXIT
rendering for format metadata state: >><<
rendering for format metadata
bla ble bli state: >><<
rendering for format metadata state: >><<
rendering for format xhtml state: >>1<<
rendering for format xhtml
bla ble bli state: >>3<<
rendering for format xhtml state: >>4<<
-----
connecting to mode base
connecting to mode listblock
connecting to mode table
connecting to mode footnote
connecting to mode quote
handling LEXER_ENTER {{<tag>}} args : >><<
handling CONTENT >>
bla ble bliii
<<
handling LEXER_EXIT
rendering for format metadata state: >><<
rendering for format metadata
bla ble bli state: >><<
rendering for format metadata state: >><<