aboutsummaryrefslogtreecommitdiff
path: root/test/command/7697.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/7697.md')
-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..eb9c823d0
--- /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
+# My Heading {#My_Heading}
+^D
+= My Heading =
+```