From 25bba0cc62dae54b5b5a4a9ba540fa7b1ec54530 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 18 Nov 2021 20:03:06 -0800 Subject: MediaWiki writer: use HTML spans for anchors when header has id. Closes #7697. --- test/command/7697.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/command/7697.md (limited to 'test') 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 + += heading = + +ref to top of this section: [[#refsubpage1|refsubpage1]]. +``` +``` +% pandoc -f markdown -t mediawiki +# Heading {#foo} +^D + += Heading = +``` +``` +% pandoc -f markdown -t mediawiki +# Heading {#heading} +^D += Heading = +``` -- cgit v1.2.3