From cafb8b7371c5d4de4cc2fa3a4f40ea6b8053a9ba Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 9 Jun 2020 23:17:31 +0200 Subject: Allow multicols env in LaTeX reader The multicols environment has a mandatory argument - number of columns. It is incorrectly parsed as plain string. Wrap multicols content into nested divs. Signed-off-by: Igor Pashev --- test/command/latex-multicols.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/command/latex-multicols.md (limited to 'test/command') diff --git a/test/command/latex-multicols.md b/test/command/latex-multicols.md new file mode 100644 index 000000000..81e5577fd --- /dev/null +++ b/test/command/latex-multicols.md @@ -0,0 +1,14 @@ +# `\begin{multicols}` + +``` +% pandoc -f latex -t native +\begin{multicols}{2} +Hello +\end{multicols} +^D +[Div ("",["columns"],[]) + [Div ("",["column"],[]) + [Div ("",["column"],[]) + [Para [Str "Hello"]]]]] +``` + -- cgit v1.2.3