diff options
| author | John MacFarlane <[email protected]> | 2022-08-27 17:30:17 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-08-27 17:30:17 -0700 |
| commit | 1d92024bcb14c976d4ad6daa079b296c54c2bafb (patch) | |
| tree | b730e3c3547a22eaf5034220ddd680807440dcaa /test/command | |
| parent | eadcb4f97e4dcc370fe9c7979d48809a39906d50 (diff) | |
HTML, Markdown writers: filter out empty class attributes.
These should not be generated by any pandoc readers, but they
might be produced programatically. Technically that's a misuse
of the AST, but since the expectation that the classes are
nonempty strigs is not encoded in the types, it can happen. This patch
limits the damage if it does, preventing invalid markdown attributes
like `{.}` from being written.
Cloess #8251.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/8251.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/command/8251.md b/test/command/8251.md new file mode 100644 index 000000000..cb16306cb --- /dev/null +++ b/test/command/8251.md @@ -0,0 +1,13 @@ +``` +% pandoc -f native -t html +Link ("",["", "", ""],[]) [Str "foo"] ("https://example.com","") +^D +<a href="https://example.com">foo</a> +``` + +``` +% pandoc -f native -t markdown +Link ("",["", "", ""],[]) [Str "foo"] ("https://example.com","") +^D +[foo](https://example.com){} +``` |
