Test for #5795: remove redundant 'dfn' classes

This commit is contained in:
John MacFarlane 2022-07-25 11:01:11 -07:00
parent 14cd2641e0
commit b7bc980089

View file

@ -1,17 +1,17 @@
```
% pandoc -f html -t html
<dfn class="dfn" id="foo" title="bax"><span>foo</span></dfn>
<dfn id="foo" title="bax"><span>foo</span></dfn>
^D
<dfn id="foo" class="dfn" title="bax"><span>foo</span></dfn>
<dfn id="foo" title="bax"><span>foo</span></dfn>
```
```
% pandoc -f html -t native
<dfn class="dfn" id="foo" title="bax"><span>foo</span></dfn>
<dfn id="foo" title="bax"><span>foo</span></dfn>
^D
[ Plain
[ Span
( "foo" , [ "dfn" , "dfn" ] , [ ( "title" , "bax" ) ] )
( "foo" , [ "dfn" ] , [ ( "title" , "bax" ) ] )
[ Span ( "" , [] , [] ) [ Str "foo" ] ]
]
]
@ -19,7 +19,7 @@
```
% pandoc -f native -t html
[Plain [Span ("foo",["dfn","dfn"],[("title","bax")]) [Span ("",[],[]) [Str "foo"]]]]
[Plain [Span ("foo",["dfn"],[("title","bax")]) [Span ("",[],[]) [Str "foo"]]]]
^D
<dfn id="foo" class="dfn" title="bax"><span>foo</span></dfn>
<dfn id="foo" title="bax"><span>foo</span></dfn>
```