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:
John MacFarlane
2021-03-10 10:19:40 -08:00
parent e17127dc28
commit 5608dc01e5
3 changed files with 38 additions and 18 deletions
+7
View File
@@ -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>
```