The italic regex \*([^*]+)\* used [^*] which matches newlines, causing bullet lists with * markers to be incorrectly converted to italic text. Changed to [^*\n]+ to prevent cross-line matching. Adds 43 tests for _escape_mdv2 and format_message covering code blocks, bold/italic, headers, links, mixed formatting, and the regression case.
13 KiB
13 KiB