c266734448
Previously we used our own homespun formatting. But this produces over-long lines that aren't ideal for diffs in tests. Easier to use something off-the-shelf and standard. Closes #7580. Performance is slower by about a factor of 10, but this isn't really a problem because native isn't suitable as a serialization format. (For serialization you should use json, because the reader is so much faster than native.)
1.2 KiB
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>