diff options
| author | benniekiss <[email protected]> | 2025-12-14 10:44:56 -0500 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-12-14 16:46:31 +0100 |
| commit | db9be758bc170e01cc0ce3af43a818edab8ea15f (patch) | |
| tree | 03d8f0d3a76faaaf4652084660e1a95944c37f54 /test/command/11348.md | |
| parent | e8ed40ef01efdba315ec995c99da31a55bf55c57 (diff) | |
Markdown reader: fix parsing of inline math (`$...$`) (#11348)
Do not allow blank lines before closing `$` delimiter.
This brings the parser in line with the documentation.
Closes #11311.
Diffstat (limited to 'test/command/11348.md')
| -rw-r--r-- | test/command/11348.md | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/test/command/11348.md b/test/command/11348.md new file mode 100644 index 000000000..1871808fe --- /dev/null +++ b/test/command/11348.md @@ -0,0 +1,61 @@ +``` +% pandoc -f markdown -t native +$ invalid opening inline math$ + +$ +invalid opening inline math$ + +$invalid closing inline math $ + +$invalid closing inline math +$ + +$valid inline math$ +^D +[ Para + [ Str "$" + , Space + , Str "invalid" + , Space + , Str "opening" + , Space + , Str "inline" + , Space + , Str "math$" + ] +, Para + [ Str "$" + , SoftBreak + , Str "invalid" + , Space + , Str "opening" + , Space + , Str "inline" + , Space + , Str "math$" + ] +, Para + [ Str "$invalid" + , Space + , Str "closing" + , Space + , Str "inline" + , Space + , Str "math" + , Space + , Str "$" + ] +, Para + [ Str "$invalid" + , Space + , Str "closing" + , Space + , Str "inline" + , Space + , Str "math" + , SoftBreak + , Str "$" + ] +, Para [ Math InlineMath "valid inline math" ] +] +``` |
