From 8281e4a094f4d4cd19796b97b66efe4966d97fd8 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 22 Mar 2023 21:58:17 -0400 Subject: [PATCH] Remove dollar escaping in importer, no longer needed. closes #5070 --- server/commands/documentImporter.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/commands/documentImporter.ts b/server/commands/documentImporter.ts index 222478bba..97667d61d 100644 --- a/server/commands/documentImporter.ts +++ b/server/commands/documentImporter.ts @@ -202,10 +202,6 @@ async function documentImporter({ // to match our hardbreak parser. text = text.replace(/
/gi, "\\n"); - // Escape any dollar signs in the text to prevent them being interpreted as - // math blocks - text = text.replace(/\$/g, "\\$"); - // find data urls, convert to blobs, upload and write attachments const images = parseImages(text); const dataURIs = images.filter((href) => href.startsWith("data:"));