pandoc/test/command/1592.md
John MacFarlane 0517cf0bc0 Fixed some loose ends in #1592.
Added test cases.

Fixed HTML reader to parse a span with class "smallcaps" as
SmallCaps.

Fixed Markdown writer to render SmallCaps as a native span
when native spans are enabled.
2017-03-04 23:01:29 +01:00

706 B

% 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}