Last modified: 2014-11-13 03:12:06 UTC
Try echo "{{Welcome}}" | node parse.js The opening section heading ==Welcome== is not parsed and is wrapped in <p> tags verbatim.
The heading is preceded by a long noinclude section, which we don't handle as start-of-line transparent in the tokenizer. This will be hard to support since we still need to tokenize noinclude sections, and noinclude sections don't necessarily match up. Maybe we could add a production for balanced nowiki sections that can include arbitrary content, which we could then treat as start-of-line transparent, just as we do right now for comments.
The tokenizer handles <*include*> as SOL transparent these days, and the test case above parses just fine.