aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-05 16:34:47 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-05 16:34:47 +0100
commite20f55618f82eb93f9ad5968e8e90b57def0d5d7 (patch)
tree3faf7c0f2212ee785155ba04ae2f22acbb662f53 /test/command
parentaeb11cea4eb1d0e6f68ad71cd178cd8636dcbf5f (diff)
downloadpandoc-e20f55618f82eb93f9ad5968e8e90b57def0d5d7.tar.gz
Markdown reader: fixed internal header links.
Closes #2397. This patch also adds `shortcut_reference_links` to the list of mmd extensions.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/2397.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/command/2397.md b/test/command/2397.md
new file mode 100644
index 000000000..34d201362
--- /dev/null
+++ b/test/command/2397.md
@@ -0,0 +1,9 @@
+```
+% pandoc -f markdown_mmd
+# Chapter 1: A long name of chapter [Chapter 1]
+
+See [Chapter 1].
+^D
+<h1 id="chapter1">Chapter 1: A long name of chapter</h1>
+<p>See <a href="#chapter1">Chapter 1</a>.</p>
+```