aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-11-18 20:03:06 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-11-18 21:15:51 -0800
commit25bba0cc62dae54b5b5a4a9ba540fa7b1ec54530 (patch)
treefaa55b1e74a6b4324b42c0d37354c46755f0a6e3 /test
parent005dc7ce56a4a165fa9af239cc28a2589f7b169d (diff)
downloadpandoc-25bba0cc62dae54b5b5a4a9ba540fa7b1ec54530.tar.gz
MediaWiki writer: use HTML spans for anchors when header has id.
Closes #7697.
Diffstat (limited to 'test')
-rw-r--r--test/command/7697.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/command/7697.md b/test/command/7697.md
new file mode 100644
index 000000000..28e865c82
--- /dev/null
+++ b/test/command/7697.md
@@ -0,0 +1,27 @@
+```
+% pandoc -f rst -t mediawiki
+.. _refsubpage1:
+
+heading
+-------
+
+ref to top of this section: `refsubpage1`_.
+^D
+<span id="refsubpage1"></span>
+= heading =
+
+ref to top of this section: [[#refsubpage1|refsubpage1]].
+```
+```
+% pandoc -f markdown -t mediawiki
+# Heading {#foo}
+^D
+<span id="foo"></span>
+= Heading =
+```
+```
+% pandoc -f markdown -t mediawiki
+# Heading {#heading}
+^D
+= Heading =
+```