diff options
author | Florian Beeres <yuuki@protonmail.com> | 2019-11-11 17:55:58 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-11 08:55:58 -0800 |
commit | bf2eb4f288df5d5b5e054cdc4ffa3b3c4dd187fa (patch) | |
tree | f49ab82d214ec4bd4badf8e67d89362d8c70a10a /test/command | |
parent | 3bf53628984a91d9456d40b1202e9d15f1ad3088 (diff) | |
download | pandoc-bf2eb4f288df5d5b5e054cdc4ffa3b3c4dd187fa.tar.gz |
Change the implementation of `htmlSpanLikeElements` and implement `<dfn>` (#5882)
* Add HTML Reader support for `<dfn>`, parsing this as a Span with class `dfn`.
* Change `htmlSpanLikeElements` implementation to retain classes,
attributes and inline content.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/5795.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/command/5795.md b/test/command/5795.md new file mode 100644 index 000000000..0d5154b4d --- /dev/null +++ b/test/command/5795.md @@ -0,0 +1,20 @@ +``` +% pandoc -f html -t html +<dfn class="dfn" id="foo" title="bax"><span>foo</span></dfn> +^D +<dfn id="foo" class="dfn" title="bax"><span>foo</span></dfn> +``` + +``` +% pandoc -f html -t native +<dfn class="dfn" id="foo" title="bax"><span>foo</span></dfn> +^D +[Plain [Span ("foo",["dfn","dfn"],[("title","bax")]) [Span ("",[],[]) [Str "foo"]]]] +``` + +``` +% pandoc -f native -t html +[Plain [Span ("foo",["dfn","dfn"],[("title","bax")]) [Span ("",[],[]) [Str "foo"]]]] +^D +<dfn id="foo" class="dfn" title="bax"><span>foo</span></dfn> +``` |