Browse Source

Fixes missing line breaks in hovers

main
Eric Amodio 2 years ago
parent
commit
2a5e8ab86f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/system/string.ts

+ 1
- 1
src/system/string.ts View File

@ -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) {

Loading…
Cancel
Save