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.
98 lines
1.5 KiB
Markdown
98 lines
1.5 KiB
Markdown
```
|
|
% pandoc -t native
|
|
[hi]{.smallcaps}
|
|
^D
|
|
[ Para [ SmallCaps [ Str "hi" ] ] ]
|
|
```
|
|
|
|
```
|
|
% pandoc -t native
|
|
[hi]{style="font-variant: small-caps;"}
|
|
^D
|
|
[ Para [ SmallCaps [ Str "hi" ] ] ]
|
|
```
|
|
|
|
```
|
|
% pandoc -t native
|
|
<span class="smallcaps">hi</span>
|
|
^D
|
|
[ Para [ SmallCaps [ Str "hi" ] ] ]
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t native
|
|
<p><span class="smallcaps">hi</span></p>
|
|
^D
|
|
[ Para [ SmallCaps [ Str "hi" ] ] ]
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t native
|
|
<p><span style="font-variant:small-caps">hi</span></p>
|
|
^D
|
|
[ Para [ SmallCaps [ Str "hi" ] ] ]
|
|
```
|
|
|
|
```
|
|
% pandoc -f native -t html
|
|
[Para [SmallCaps [Str "hi"]]]
|
|
^D
|
|
<p><span class="smallcaps">hi</span></p>
|
|
```
|
|
|
|
```
|
|
% pandoc -f native -t markdown
|
|
[Para [SmallCaps [Str "hi"]]]
|
|
^D
|
|
[hi]{.smallcaps}
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t native
|
|
<bdo dir="ltr">foo</bdo>
|
|
^D
|
|
[ Plain
|
|
[ Span ( "" , [] , [ ( "dir" , "ltr" ) ] ) [ Str "foo" ] ]
|
|
]
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t native
|
|
<bdo dir="rtl">foo<bdo dir="ltr">bar</bdo>baz</bdo>
|
|
^D
|
|
[ Plain
|
|
[ Span
|
|
( "" , [] , [ ( "dir" , "rtl" ) ] )
|
|
[ Str "foo"
|
|
, Span ( "" , [] , [ ( "dir" , "ltr" ) ] ) [ Str "bar" ]
|
|
, Str "baz"
|
|
]
|
|
]
|
|
]
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t native
|
|
<p><bdo dir="rtl">This text will go right
|
|
to left.</bdo></p>
|
|
^D
|
|
[ Para
|
|
[ Span
|
|
( "" , [] , [ ( "dir" , "rtl" ) ] )
|
|
[ Str "This"
|
|
, Space
|
|
, Str "text"
|
|
, Space
|
|
, Str "will"
|
|
, Space
|
|
, Str "go"
|
|
, Space
|
|
, Str "right"
|
|
, SoftBreak
|
|
, Str "to"
|
|
, Space
|
|
, Str "left."
|
|
]
|
|
]
|
|
]
|
|
```
|