On Apr 9, 2010, at 2:14 PM, Andreas Jonsson
wrote:
Hi,
I prefer a solution where the end token is changed rather than
the content. Look at the embedded parser construction in
MoinMoin syntax for an example.
I instead propose to introduce an instruction to the parser in
the start-tag to expect a different end token. Something like:
{{foo #endtag:foobar}}
content
{{/foo}}
still content
{{/foobar}}
Not a bad idea. It would be backward compatible too.
For verbatim we could use the same technique as
MoinMoin, either:
{{{{
content
}}}
more content
}}}}
or:
{{{arbitrarystringofalphanumerics
content
}}}
more content
arbitrarystringofalphanumerics}}}
This would change our syntax since right now we can write: {{{hello}}}
Your solution would loose the ability to have inline verbatim.
I am not proposing that this style is used for inlined verbatim only for
blocks. So the start token is only a start token if it stands on a line
by itself outside of any pargraph.