diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-11-18 20:03:06 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-11-18 21:15:51 -0800 |
commit | 25bba0cc62dae54b5b5a4a9ba540fa7b1ec54530 (patch) | |
tree | faa55b1e74a6b4324b42c0d37354c46755f0a6e3 /test/command | |
parent | 005dc7ce56a4a165fa9af239cc28a2589f7b169d (diff) | |
download | pandoc-25bba0cc62dae54b5b5a4a9ba540fa7b1ec54530.tar.gz |
MediaWiki writer: use HTML spans for anchors when header has id.
Closes #7697.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/7697.md | 27 |
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 = +``` |