aboutsummaryrefslogtreecommitdiff
path: root/test/command/5540.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-06-08 12:25:34 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-06-08 12:25:34 -0700
commitd1df2b2783a6fdbe0315cf69d2306271254960f3 (patch)
tree27dfcd934abc5f3411c5fa088da9756dd34a9661 /test/command/5540.md
parent931030d95d85ca3059516d15ef1b632131a84a20 (diff)
downloadpandoc-d1df2b2783a6fdbe0315cf69d2306271254960f3.tar.gz
LaTeX reader: pass through unknown listings language as class.
Previously if the language was not in the list of listings- supported languages, it would not be added as a class, so custom syntax highlighting could not be used. Closes #5540.
Diffstat (limited to 'test/command/5540.md')
-rw-r--r--test/command/5540.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/5540.md b/test/command/5540.md
new file mode 100644
index 000000000..802a88d9d
--- /dev/null
+++ b/test/command/5540.md
@@ -0,0 +1,8 @@
+```
+% pandoc -f latex -t native
+\begin{lstlisting}[language=myfunnylanguage]
+Stay pure!
+\end{lstlisting}
+^D
+[CodeBlock ("",["myfunnylanguage"],[("language","myfunnylanguage")]) "Stay pure!"]
+```