diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-02-05 10:08:18 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-02-05 10:08:18 -0800 |
commit | 0a4f49d3703bfb7016800148059206482278eeb6 (patch) | |
tree | bef9970b57f97b26c35bd93f671c173000ed912a /test | |
parent | 9c4dc8b49b3894d51aa37fbcff1c228776ffb98f (diff) | |
download | pandoc-0a4f49d3703bfb7016800148059206482278eeb6.tar.gz |
MediaWiki writer: prevent triple `[[[`.
This confuses mediawiki's parser. So we insert a `<nowiki/>`
no-op between a literal `[` and a link. Closes #6119.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/6119.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/command/6119.md b/test/command/6119.md new file mode 100644 index 000000000..6a0085e18 --- /dev/null +++ b/test/command/6119.md @@ -0,0 +1,10 @@ +``` +% pandoc -t mediawiki +[[link](url)] + +[![image](url)] +^D +[<nowiki/>[[url|link]]] + +[<nowiki/>[[File:url|image]]] +``` |