mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
core: fix do not eagerly parse HTML
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user