Sfoglia il codice sorgente

Fixes missing line breaks in hovers

main
Eric Amodio 2 anni fa
parent
commit
2a5e8ab86f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/system/string.ts

+ 1
- 1
src/system/string.ts Vedi 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) {

Caricamento…
Annulla
Salva