diff --git a/src/system/string.ts b/src/system/string.ts index ea01b51..f5843d6 100644 --- a/src/system/string.ts +++ b/src/system/string.ts @@ -109,7 +109,7 @@ export function escapeMarkdown(s: string, options: { quoted?: boolean } = {}): s if (!options.quoted) return s; // Keep under the same block-quote but with line breaks - return s.replace(markdownQuotedRegex, '\t\n> '); + return s.replace(markdownQuotedRegex, '\t\\\n> '); } export function escapeRegex(s: string) {