From 5608dc01e5342d367fba3377042dec3944f4d86f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 10 Mar 2021 10:19:40 -0800 Subject: 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] --- test/command/duplicate_attributes.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/command/duplicate_attributes.md (limited to 'test/command') 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". +

span

+``` -- cgit v1.2.3