Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix do not eagerly parse HTML

Abdullah Attad372c2daf97c
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 <http://www.gnu.org/licenses/>.
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() {