From 2a5e8ab86fd150aacff6278fd5fcf3d9a69af01b Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 22 Aug 2022 04:12:12 -0400 Subject: [PATCH] Fixes missing line breaks in hovers --- src/system/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {