LaTeX reader: rudimentary support for vbox.

Closes #7939.
This commit is contained in:
John MacFarlane 2022-02-27 23:24:30 -08:00
parent f387d9bcd6
commit 97c4f3f237
2 changed files with 10 additions and 0 deletions

View file

@ -360,6 +360,7 @@ inlineCommands = M.unions
, ("underline", underline <$> tok)
, ("mbox", rawInlineOr "mbox" $ processHBox <$> tok)
, ("hbox", rawInlineOr "hbox" $ processHBox <$> tok)
, ("vbox", rawInlineOr "vbox" tok)
, ("lettrine", rawInlineOr "lettrine" lettrine)
, ("(", mathInline . untokenize <$> manyTill anyTok (controlSeq ")"))
, ("[", mathDisplay . untokenize <$> manyTill anyTok (controlSeq "]"))

9
test/command/7939.md Normal file
View file

@ -0,0 +1,9 @@
```
% pandoc -f latex -t native
\def\|{\verb|}
\vbox{
\hbox{\|\begin{minipage}[t]%|}
}
^D
[ Para [ Code ( "" , [] , [] ) "\\begin{minipage}[t]%" ] ]
```