From 49c4e1d014f90a10e7ed87a8fa5f1c0e9b8dbc8a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 Oct 2021 08:59:37 -0700 Subject: Fix markdown parsing bug for math in bracketed spans and links. This affects math with unbalanced brackets (e.g. `$(0,1]$`) inside links, images, bracketed spans. Closes #7623. --- test/command/7623.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/command/7623.md (limited to 'test') diff --git a/test/command/7623.md b/test/command/7623.md new file mode 100644 index 000000000..1c4c8a0c1 --- /dev/null +++ b/test/command/7623.md @@ -0,0 +1,12 @@ +``` +% pandoc -t native +[link $(0,1]$](url) +^D +[ Para + [ Link + ( "" , [] , [] ) + [ Str "link" , Space , Math InlineMath "(0,1]" ] + ( "url" , "" ) + ] +] +``` -- cgit v1.2.3