diff options
-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"]] +``` + |