aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-10-13 08:59:37 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-13 08:59:37 -0700
commit49c4e1d014f90a10e7ed87a8fa5f1c0e9b8dbc8a (patch)
tree58d3d9e32cac23bd659540d7e7f18719276c216f /test/command
parentafc16f2f4bbff941370310e637a0ab5feaea7879 (diff)
downloadpandoc-49c4e1d014f90a10e7ed87a8fa5f1c0e9b8dbc8a.tar.gz
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.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/7623.md12
1 files changed, 12 insertions, 0 deletions
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" , "" )
+ ]
+]
+```