diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-04 23:01:29 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-04 23:01:29 +0100 |
commit | 0517cf0bc0db5e5b94c86f2dddc1fbc279632b2c (patch) | |
tree | 48225de7df84ae5ace195a7a9ae23d3716c9a722 /test/command | |
parent | 40d1dc417aec8f7cbade5895a1f4ce549039c2c1 (diff) | |
download | pandoc-0517cf0bc0db5e5b94c86f2dddc1fbc279632b2c.tar.gz |
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.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/1592.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/command/1592.md b/test/command/1592.md new file mode 100644 index 000000000..54e59137b --- /dev/null +++ b/test/command/1592.md @@ -0,0 +1,49 @@ +``` +% 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} +``` + |