mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 03:17:16 +00:00
db9be758bc
Do not allow blank lines before closing `$` delimiter. This brings the parser in line with the documentation. Closes #11311.
855 B
855 B
% 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" ]
]