From 5fe734d452976ff66ede965984954c6d3755d5c2 Mon Sep 17 00:00:00 2001 From: schrieveslaach Date: Wed, 29 Mar 2017 14:49:46 +0200 Subject: lstinline with braces can be used (verb cannot be used with braces) (#3535) * Fix lstinline handling: lstinline with braces can be used (verb cannot be used with braces) * Use codeWith and determine the language from lstinline * Improve code * Add another test: convert lstinline without language option --- test/command/3534.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/command/3534.md (limited to 'test') diff --git a/test/command/3534.md b/test/command/3534.md new file mode 100644 index 000000000..89224551b --- /dev/null +++ b/test/command/3534.md @@ -0,0 +1,23 @@ +``` +% pandoc -f latex -t html +I want to explain the interface of \lstinline[language=Java]{public class MyClass}. +^D +

I want to explain the interface of public class MyClass.

+ +``` + +``` +% pandoc -f latex -t html +I want to explain the interface of \lstinline{public class MyClass}. +^D +

I want to explain the interface of public class MyClass.

+ +``` + +``` +% pandoc -f latex -t native +I want to explain the interface of \lstinline[language=Java]{public class MyClass}. +^D +[Para [Str "I",Space,Str "want",Space,Str "to",Space,Str "explain",Space,Str "the",Space,Str "interface",Space,Str "of",Space,Code ("",["java"],[]) "public class MyClass",Str "."]] +``` + -- cgit v1.2.3