mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
The intended use of $$ is for inline expressions, not for multiline ones; ```math is an acceptable alternative for the latter. Hence, the $$-syntax for inline TeX no longer permits newlines within it. This was also necessary for the next change to be sensible; namely allowing for spaces around both $$ when crafting inline TeX instead of forcing everything to be crammed together, e.g. $$x=7$$. In order to avoid uninentionally creating inline expressions, the opening and closing $$'s of an inline expression must now both exactly consist of two dollar signs, no more and no less. Fixes: #6488.