pandoc/test/command/4499.md
Vasily Alferov f6c92c7523 Fix #4499: add mbox and hbox handling to LaTeX reader (#5586)
When `+raw_tex` is enabled, these are passed through literally.
Otherwise, they are handled in a way that emulates LaTeX's behavior.
2019-07-13 16:55:41 -07:00

1.2 KiB

% pandoc -f latex -t html
\mbox{abc def} ghi
^D
<p>abc def ghi</p>
% pandoc -f latex+raw_tex -t native
\mbox{abc def}
^D
[Para [RawInline (Format "latex") "\\mbox{abc def}"]]
% pandoc -f latex -t html
abc \mbox{\textit{def ghi} jkl} mno
^D
<p>abc <em>def ghi</em> jkl mno</p>
% pandoc -f latex -t html
abc \mbox{def \\ ghi} jkl
^D
<p>abc defghi jkl</p>
% pandoc -f latex -t html
abc \mbox{def
ghi}
^D
<p>abc def ghi</p>
% pandoc -f latex -t html
abc \mbox{def \textit{ghi \\ jkl}
mno} pqr
^D
<p>abc def <em>ghijkl</em> mno pqr</p>
% pandoc -f latex -t html
\hbox{abc def} ghi
^D
<p>abc def ghi</p>
% pandoc -f latex+raw_tex -t native
\hbox{abc def}
^D
[Para [RawInline (Format "latex") "\\hbox{abc def}"]]
% pandoc -f latex -t html
abc \hbox{\textit{def ghi} jkl} mno
^D
<p>abc <em>def ghi</em> jkl mno</p>
% pandoc -f latex -t html
abc \hbox{def \\ ghi} jkl
^D
<p>abc defghi jkl</p>
% pandoc -f latex -t html
abc \hbox{def
ghi}
^D
<p>abc def ghi</p>
% pandoc -f latex -t html
abc \hbox{def \textit{ghi \\ jkl}
mno} pqr
^D
<p>abc def <em>ghijkl</em> mno pqr</p>