-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix keyval funtion: pandoc did not parse options in braces correctly.… (
#3642) * Fix keyval funtion: pandoc did not parse options in braces correctly. Additionally, dot, dash, and colon were no valid characters * Add | as possible option value * Improved code
- Loading branch information
1 parent
f422000
commit ddf2524
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
``` | ||
% pandoc -f latex -t native | ||
\begin{lstlisting}[language=Java, caption={Java Example}, label=lst:Hello-World] | ||
public class World { | ||
public static void main(String[] args) { | ||
System.out.println("Hello World"); | ||
} | ||
} | ||
\end{lstlisting} | ||
^D | ||
[CodeBlock ("lst:Hello-World",["java"],[("language","Java"),("caption","Java Example"),("label","lst:Hello-World")]) "public class World {\n public static void main(String[] args) {\n System.out.println(\"Hello World\");\n }\n}"] | ||
``` | ||
|
||
``` | ||
% pandoc -f latex -t native | ||
\begin{lstlisting}[language=Java, escapechar=|, caption={Java Example}, label=lst:Hello-World] | ||
public class World { | ||
public static void main(String[] args) { | ||
System.out.println("Hello World"); | ||
} | ||
} | ||
\end{lstlisting} | ||
^D | ||
[CodeBlock ("lst:Hello-World",["java"],[("language","Java"),("escapechar","|"),("caption","Java Example"),("label","lst:Hello-World")]) "public class World {\n public static void main(String[] args) {\n System.out.println(\"Hello World\");\n }\n}"] | ||
``` |