From d372c2daf97c3695bd5e4600e2de266105cbf66a Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 11 Nov 2022 18:42:23 +0500 Subject: [PATCH] core: fix do not eagerly parse HTML --- packages/core/content-types/tiptap.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/core/content-types/tiptap.js b/packages/core/content-types/tiptap.js index 1249e495f..36cf252f7 100644 --- a/packages/core/content-types/tiptap.js +++ b/packages/core/content-types/tiptap.js @@ -19,11 +19,7 @@ along with this program. If not, see . import showdown from "@streetwriters/showdown"; import dataurl from "../utils/dataurl"; -import { - extractFirstParagraph, - getDummyDocument, - parseHTML -} from "../utils/html-parser"; +import { extractFirstParagraph, getDummyDocument } from "../utils/html-parser"; import { Attributes, HTMLParser, HTMLRewriter } from "../utils/html-rewriter"; import { convert } from "html-to-text"; import { list } from "html-to-text/lib/formatter"; @@ -43,7 +39,6 @@ const splitter = /\W+/gm; export class Tiptap { constructor(data) { this.data = data; - this.document = parseHTML(data); } toHTML() {