aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschrieveslaach <schrieveslaach@online.de>2017-04-26 12:03:07 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-04-26 12:03:07 +0200
commit81548960d52d6c3ca34aa5fa041e5aa8bae9481b (patch)
tree9db7158bc4fd5cd5d9116a3b48b2af7bc4486362
parent66b08391b38b0812112ff03d7610d4592c3a1017 (diff)
downloadpandoc-81548960d52d6c3ca34aa5fa041e5aa8bae9481b.tar.gz
LaTeX reader: Add support for \vdots (#3607)
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
-rw-r--r--test/command/dots.md12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 3e5fae8fb..564d4e417 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -528,6 +528,7 @@ inlineCommands = M.fromList $
, ("textbf", extractSpaces strong <$> tok)
, ("textnormal", extractSpaces (spanWith ("",["nodecor"],[])) <$> tok)
, ("ldots", lit "…")
+ , ("vdots", lit "\8942")
, ("dots", lit "…")
, ("mdots", lit "…")
, ("sim", lit "~")
diff --git a/test/command/dots.md b/test/command/dots.md
new file mode 100644
index 000000000..08bc561a8
--- /dev/null
+++ b/test/command/dots.md
@@ -0,0 +1,12 @@
+```
+% pandoc -f latex -t native
+\dots
+
+\ldots
+
+\vdots
+^D
+[Para [Str "\8230"]
+,Para [Str "\8230"]
+,Para [Str "\8942"]]
+```