From 65c808cb7ae5c605834c0c5382f61d461aaaf420 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 24 Jun 2025 16:43:36 -0300 Subject: replacer: allow \. through --- src/replacer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/replacer.js b/src/replacer.js index bf28061c..779ee78d 100644 --- a/src/replacer.js +++ b/src/replacer.js @@ -464,7 +464,7 @@ export function squashBackslashes(text) { // a set of characters where the backslash carries meaning // into later formatting (i.e. markdown). Note that we do // NOT compress double backslashes into single backslashes. - return text.replace(/([^\\](?:\\{2})*)\\(?![\\*_~>-])/g, '$1'); + return text.replace(/([^\\](?:\\{2})*)\\(?![\\*_~>.-])/g, '$1'); } export function restoreRawHTMLTags(text) { -- cgit 1.3.0-6-gf8a5