aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-07-18 22:08:37 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-07-18 22:08:37 -0700
commit5c655e86d5d34172bc5892927309d8dff6023493 (patch)
treedd9abef88ac06f572274de54b3a30b847cbd23ae /test
parent4d65bbf0dfac37c91214ebfb502481aa1c20c8be (diff)
downloadpandoc-5c655e86d5d34172bc5892927309d8dff6023493.tar.gz
HTML writer: ensure that line numbers in code blocks get id-prefix.
Closes #5650.
Diffstat (limited to 'test')
-rw-r--r--test/command/5650.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/command/5650.md b/test/command/5650.md
new file mode 100644
index 000000000..0618f415f
--- /dev/null
+++ b/test/command/5650.md
@@ -0,0 +1,22 @@
+````
+% pandoc --id-prefix foo
+```haskell
+a
+b
+```
+^D
+<div class="sourceCode" id="foocb1"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foocb1-1"><a href="#foocb1-1"></a>a</span>
+<span id="foocb1-2"><a href="#foocb1-2"></a>b</span></code></pre></div>
+````
+
+````
+% pandoc --id-prefix foo
+``` {.haskell #bar}
+a
+b
+```
+^D
+<div class="sourceCode" id="foobar"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foobar-1"><a href="#foobar-1"></a>a</span>
+<span id="foobar-2"><a href="#foobar-2"></a>b</span></code></pre></div>
+````
+