diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2020-11-28 22:58:20 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2020-11-28 22:58:20 +0200 |
commit | d4710c262ffd694c25e2f9f40da80a621615d701 (patch) | |
tree | 2b98d8117605592bb6737eb9dbd2f69a63a9ca82 | |
parent | cafb8b7371c5d4de4cc2fa3a4f40ea6b8053a9ba (diff) | |
download | pandoc-d4710c262ffd694c25e2f9f40da80a621615d701.tar.gz |
LaTeX reader: support (ignore) stackengine
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 | ||||
-rw-r--r-- | test/command/latex-stackengine.md | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index de01708f2..493b8abac 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -940,6 +940,8 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList , ("uline", underline <$> tok) -- plain tex stuff that should just be passed through as raw tex , ("ifdim", ifdim) + -- stackengine + , ("addstackgap", skipopts *> tok) ] accent :: PandocMonad m => Char -> Maybe Char -> LP m Inlines diff --git a/test/command/latex-stackengine.md b/test/command/latex-stackengine.md new file mode 100644 index 000000000..21253bf61 --- /dev/null +++ b/test/command/latex-stackengine.md @@ -0,0 +1,18 @@ +# stackengine + +``` +% pandoc -f latex -t native +\addstackgap{Hello} World + +^D +[Para [Str "Hello",Space,Str "World"]] +``` + +``` +% pandoc -f latex -t native +Hello \addstackgap[12pt]{World} + +^D +[Para [Str "Hello",Space,Str "World"]] +``` + |