A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: do not wrap text in content blocks
Abdullah Attae9431af13806
diff --git a/packages/core/src/content-types/tiptap.ts b/packages/core/src/content-types/tiptap.tsindex 049dc91c4..b0edc4a66 100644--- a/packages/core/src/content-types/tiptap.ts+++ b/packages/core/src/content-types/tiptap.ts@@ -158,7 +158,8 @@ export class Tiptap {id: node.attribs[ATTRIBUTES.blockId],type: node.tagName.toLowerCase(),content: convertHtmlToTxt(- this.data.slice(node.startIndex || 0, node.endIndex || 0)+ this.data.slice(node.startIndex || 0, node.endIndex || 0),+ false)})));@@ -291,9 +292,9 @@ export class Tiptap {}}-function convertHtmlToTxt(html: string) {+function convertHtmlToTxt(html: string, wrap = true) {return convert(html, {- wordwrap: 80,+ wordwrap: wrap ? 80 : false,preserveNewlines: true,selectors: [{ selector: "table", format: "dataTable" },