f6c92c7523
When `+raw_tex` is enabled, these are passed through literally. Otherwise, they are handled in a way that emulates LaTeX's behavior.
87 lines
1.2 KiB
Markdown
87 lines
1.2 KiB
Markdown
```
|
||
% 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>
|
||
```
|