aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-02-05 10:08:18 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-02-05 10:08:18 -0800
commit0a4f49d3703bfb7016800148059206482278eeb6 (patch)
treebef9970b57f97b26c35bd93f671c173000ed912a /test
parent9c4dc8b49b3894d51aa37fbcff1c228776ffb98f (diff)
downloadpandoc-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.md10
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]]]
+```