mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
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.
This commit is contained in:
committed by
John MacFarlane
parent
3bf5362898
commit
bf2eb4f288
@@ -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>
|
||||
```
|
||||
Reference in New Issue
Block a user