From d1df2b2783a6fdbe0315cf69d2306271254960f3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 8 Jun 2019 12:25:34 -0700 Subject: 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. --- test/command/5540.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/command/5540.md (limited to 'test/command/5540.md') 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!"] +``` -- cgit v1.2.3