mirror of
https://github.com/outline/outline.git
synced 2026-12-04 18:34:54 +03:00
1 parent
114019c4d8
commit
8281e4a094
1 file changed
-4
@@ -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:"));
|
||||
|
||||
Reference in new issue
Block a user