aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-06-11 20:43:20 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-06-11 20:47:29 -0700
commitbec95c97ace807b4f6c6ad359bf0b310b905f707 (patch)
treea474fb1282799e620fc76001f8a9c422dae55033 /test
parent9725522a7f939f090800b6fcd0742d4d8ff671ed (diff)
downloadpandoc-bec95c97ace807b4f6c6ad359bf0b310b905f707.tar.gz
LaTeX writer: Don't highlight code in headings.
This causes compilation errors, and I don't know how to work around them. Closes #5574.
Diffstat (limited to 'test')
-rw-r--r--test/command/5574.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/5574.md b/test/command/5574.md
new file mode 100644
index 000000000..441b3afd6
--- /dev/null
+++ b/test/command/5574.md
@@ -0,0 +1,8 @@
+No highlighting inside heading:
+```
+% pandoc -t latex
+# `foo`{.cpp}
+^D
+\hypertarget{foo}{%
+\section{\texorpdfstring{\texttt{foo}}{foo}}\label{foo}}
+```