Closed hturner closed 1 month ago
This is indeed a bug, and due to one of the two aspects that I dislike most about the commonmark spec (i.e., no requiring empty lines around block-level elements). The author of Pandoc also hates it: https://github.com/jgm/djot?tab=readme-ov-file#rationale (point 7). I think this is absolutely a design mistake, but I can't change the spec. I'll see if I can figure out a workaround. Thanks for the report!
Fixed now. However, please note that the current syntax for $$ $$
expressions requires that there are no trailing spaces after the closing $$
. Your examples have spaces after d$$
, which must be removed.
Brilliant, thanks!
Equations with line breaks before operators that are valid markup for list bullets are not rendered correctly.
An example:
$$a * b - c + d$$
$$a
Break before
-
, one preceding space$$a * b
Break before
+
, two preceding spaces$$a * b - c
Maybe bad line break
Break before
+
, four preceding spaces (not sure if junk output is hangover from bad examples)$$a * b - c
Good line break
Break after
-
, two preceding spaces$$a * b - c + d$$