mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
HTML writer: Add warnings on duplicate attribute values.
This prevents emitting invalid HTML. Ultimately it would be good to prevent this in the types themselves, but this is better for now. T.P.Logging: Add DuplicateAttribute constructor to LogMessage. [API change]
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
```
|
||||
% pandoc
|
||||
[span]{.foobar style="color:blue" class="zip" style="color:red"}
|
||||
^D
|
||||
[WARNING] Ignoring duplicate attribute style="color:red".
|
||||
<p><span class="foobar zip" style="color:blue">span</span></p>
|
||||
```
|
||||
Reference in New Issue
Block a user