diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-10-13 08:59:37 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-10-13 08:59:37 -0700 |
commit | 49c4e1d014f90a10e7ed87a8fa5f1c0e9b8dbc8a (patch) | |
tree | 58d3d9e32cac23bd659540d7e7f18719276c216f /test | |
parent | afc16f2f4bbff941370310e637a0ab5feaea7879 (diff) | |
download | pandoc-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')
-rw-r--r-- | test/command/7623.md | 12 |
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" , "" ) + ] +] +``` |