0bdcf415e4
Update tests. Reason: it turns out that the native output generated by pretty-simple isn't always readable by the native reader. According to https://github.com/cdepillabout/pretty-simple/issues/99 it is not a design goal of the library that the rendered values be readable using 'read'. This makes it unsuitable for our purposes. pretty-show is a bit slower and it uses 4-space indents (non-configurable), but it doesn't have this serious drawback.
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>
|
||
```
|