CXuesong / MwParserFromScratch

A basic .NET Library for parsing wikitext into AST.
Apache License 2.0
18 stars 5 forks source link

line-break in wikilink is handled incorrectly #8

Open CXuesong opened 7 years ago

CXuesong commented 7 years ago

Currently, the Text part of WIKILINK cannot contain line-break. E.g.

[[Test|abc
def]]

However, this is a valid wikilink expression.

For now, the expression above is parsed as

Wikitext             [[[Test|abc\r\ndef]]\r\n]
.Paragraph           [[[Test|abc\r\ndef]]\r\n]
..PlainText          [[[Test|abc\r\ndef]]\r\n]