diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-03-10 10:19:40 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-03-10 10:19:40 -0800 |
commit | 5608dc01e5342d367fba3377042dec3944f4d86f (patch) | |
tree | 9a6470dbb27484a90b010b8128cf50ebc2b3bff5 /test/command | |
parent | e17127dc2827502725acdc8d4c5e0a7a369b4201 (diff) | |
download | pandoc-5608dc01e5342d367fba3377042dec3944f4d86f.tar.gz |
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]
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/duplicate_attributes.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/command/duplicate_attributes.md b/test/command/duplicate_attributes.md new file mode 100644 index 000000000..b6e8a4c21 --- /dev/null +++ b/test/command/duplicate_attributes.md @@ -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> +``` |