aboutsummaryrefslogtreecommitdiff
path: root/test/command/latex-center.md
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2020-11-26 22:04:31 +0200
committerGitHub <noreply@github.com>2020-11-26 12:04:31 -0800
commit630b1bff2bba436cfba8dcb19845af394aa0dee2 (patch)
tree97bb9832c55f1c9baa65c0adf23c46e7020293be /test/command/latex-center.md
parent07919e1b2270a906019575e4ce85590d6754d41c (diff)
downloadpandoc-630b1bff2bba436cfba8dcb19845af394aa0dee2.tar.gz
LaTeX reader: preserve center environment (#6852)
The contents of the `center` environment are put in a `Div` with class `center`.
Diffstat (limited to 'test/command/latex-center.md')
-rw-r--r--test/command/latex-center.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/command/latex-center.md b/test/command/latex-center.md
new file mode 100644
index 000000000..3d0bf0429
--- /dev/null
+++ b/test/command/latex-center.md
@@ -0,0 +1,13 @@
+# `\begin{center}`
+
+```
+% pandoc -f latex -t native
+\begin{center}
+Hello
+\end{center}
+
+^D
+[Div ("",["center"],[])
+ [Para [Str "Hello"]]]
+```
+