1.1 --- a/moinformat/parsers/moin.py Tue Apr 16 00:46:27 2019 +0200
1.2 +++ b/moinformat/parsers/moin.py Tue Apr 16 23:35:21 2019 +0200
1.3 @@ -785,13 +785,13 @@
1.4 # Links and transclusions may start inline spans.
1.5
1.6 "link" : join((r"\[\[", # [[
1.7 - group("target", r"\E*?"), # ...
1.8 + group("target", r"\P*?"), # ...
1.9 choice((r"\|", # |
1.10 group("end", r"]]"))))), # ]]
1.11
1.12 "transclusion" : join((r"\{\{", # {{
1.13 excl(r"\{"), # not-{
1.14 - group("target", ".*?"), # ...
1.15 + group("target", r"\P*?"), # ...
1.16 choice((r"\|", # |
1.17 group("end", r"}}"))))), # }}
1.18
3.1 --- a/tests/test_links.txt Tue Apr 16 00:46:27 2019 +0200
3.2 +++ b/tests/test_links.txt Tue Apr 16 23:35:21 2019 +0200
3.3 @@ -12,3 +12,7 @@
3.4 link|wrapped link with label]], a [[link|link with
3.5 wrapped label]], and a [[#wrapped
3.6 intra-page link]].
3.7 +
3.8 +Do not allow [[links
3.9 +
3.10 +broken into separate paragraphs]].