Actually, I wrote a test in a local checkout of the rendering module, in the syntax 2.0 thing (I hope I wrote it right) and according to that test this:
* Item 1
~=~= Title
gets parsed into
<list>
<listItem>
<word>Item</word>
<space/>
<word>1</word>
<newLine/>
<specialSymbol>=</specialSymbol>
<specialSymbol>=</specialSymbol>
<space/>
<word>Title</word>
</listItem>
</list>
which is what’s expected.
Then, the content above gets rendered back into:
* Item 1
== Title
And of course parsing this back parses it into a heading - which yes, would require 2 NLs, indeed.
The question, to me, is why the initial re-rendering doesn’t render it back escaped, shouldn’t it? I mean shouldn’t it not render wiki syntax at all? or that depends on the context (and in this case the context is considered to be a context where the heading is not valid so it doesn’t need to escape the heading syntax)?