mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Earlier, the 'remove_single_newlines' function wasn't working correctly when '\n' was followed by asterix, hyphen, or number. Specifically, they were not added as a syntax for ordered or unordered list in markdown. For example, see the workaround fix in330439a83b. This commit updates the function to replace '\n' with ' ', when "\n" is not preceded by "\n" and not followed by: * Another newline (\n) * A hyphen followed by a space * An asterisk followed by a space * A number followed by a dot and a space We won't have to do fixes like330439a83bin the future.
22 KiB
22 KiB