Remove dollar escaping in importer, no longer needed.

closes #5070
This commit is contained in:
Tom Moor
2023-03-22 21:58:17 -04:00
parent 114019c4d8
commit 8281e4a094

View File

@@ -202,10 +202,6 @@ async function documentImporter({
// to match our hardbreak parser.
text = text.replace(/<br>/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:"));