From bcf06e7f5e508f548f7060ba3e7281766aa2c1ea Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 27 Sep 2022 22:14:43 -0700 Subject: HTML writer: prevent `` inside ``. If a link text contains a link, we replace it with a span. See #7585. --- test/command/html-writer-a-in-a.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/command/html-writer-a-in-a.md (limited to 'test/command') diff --git a/test/command/html-writer-a-in-a.md b/test/command/html-writer-a-in-a.md new file mode 100644 index 000000000..219496d28 --- /dev/null +++ b/test/command/html-writer-a-in-a.md @@ -0,0 +1,7 @@ +a is not allowed inside a in HTML, so we remove links in link text: +``` +% pandoc -f native -t html +[ Link ("",[],[]) [Link ("",[],[]) [Str "Lo"] ("url2","") ] ("url","") ] +^D +Lo +``` -- cgit v1.2.3