aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2020-06-09 23:17:31 +0200
committerIgor Pashev <pashev.igor@gmail.com>2020-11-27 13:28:11 +0200
commitcafb8b7371c5d4de4cc2fa3a4f40ea6b8053a9ba (patch)
treead995902da2370d46f09ba68a2361d513c697a5c /test/command
parenta9c766291f529ffe50c0415a03f06f9756a0a5f0 (diff)
downloadpandoc-cafb8b7371c5d4de4cc2fa3a4f40ea6b8053a9ba.tar.gz
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 <pashev.igor@gmail.com>
Diffstat (limited to 'test/command')
-rw-r--r--test/command/latex-multicols.md14
1 files changed, 14 insertions, 0 deletions
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"]]]]]
+```
+