text and $math broken
into multiple lines$
renders as
text and
(agrees with Pandoc)
text and $
math starting with a newline$
renders as
text and $ math starting with a newline$
(agrees with Pandoc)
text and $math
ending with a newline
$
renders as
text and
(Pandoc doesn't parse as math)
text and $math with \
escaped newline$
renders as
text and $math with
escaped newline$
(Pandoc parses as math)
text and$math surroundend by$it
renders as
text and$math surroundend by$it
(Pandoc parses as math)