@blocknote/core 0.4.5 → 0.4.6-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote.js +1300 -11885
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +2 -50
- package/dist/blocknote.umd.cjs.map +1 -1
- package/package.json +7 -4
- package/src/api/formatConversions/formatConversions.ts +4 -4
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"homepage": "https://github.com/yousefed/blocknote",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "0.4.
|
|
6
|
+
"version": "0.4.6-alpha.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"types",
|
|
@@ -70,11 +70,14 @@
|
|
|
70
70
|
"@tiptap/pm": "2.0.0-beta.217",
|
|
71
71
|
"hast-util-from-dom": "^4.2.0",
|
|
72
72
|
"lodash": "^4.17.21",
|
|
73
|
-
"rehype": "^
|
|
73
|
+
"rehype-parse": "^8.0.4",
|
|
74
74
|
"rehype-remark": "^9.1.2",
|
|
75
|
-
"
|
|
75
|
+
"rehype-stringify": "^9.0.3",
|
|
76
76
|
"remark-gfm": "^3.0.1",
|
|
77
|
+
"remark-parse": "^10.0.1",
|
|
77
78
|
"remark-rehype": "^10.1.0",
|
|
79
|
+
"remark-stringify": "^10.0.2",
|
|
80
|
+
"unified": "^10.1.2",
|
|
78
81
|
"uuid": "^8.3.2",
|
|
79
82
|
"y-prosemirror": "1.0.20",
|
|
80
83
|
"y-protocols": "1.0.5",
|
|
@@ -106,5 +109,5 @@
|
|
|
106
109
|
"access": "public",
|
|
107
110
|
"registry": "https://registry.npmjs.org/"
|
|
108
111
|
},
|
|
109
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "97c27855a18ef6f4c6d9f939ac9e1546b85dd90d"
|
|
110
113
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DOMParser, DOMSerializer, Schema } from "prosemirror-model";
|
|
2
|
-
import { unified } from "unified";
|
|
3
2
|
import rehypeParse from "rehype-parse";
|
|
4
|
-
import rehypeStringify from "rehype-stringify";
|
|
5
3
|
import rehypeRemark from "rehype-remark";
|
|
4
|
+
import rehypeStringify from "rehype-stringify";
|
|
6
5
|
import remarkGfm from "remark-gfm";
|
|
7
|
-
import remarkStringify from "remark-stringify";
|
|
8
6
|
import remarkParse from "remark-parse";
|
|
9
7
|
import remarkRehype from "remark-rehype";
|
|
8
|
+
import remarkStringify from "remark-stringify";
|
|
9
|
+
import { unified } from "unified";
|
|
10
10
|
import { Block } from "../../extensions/Blocks/api/blockTypes";
|
|
11
11
|
import { blockToNode, nodeToBlock } from "../nodeConversions/nodeConversions";
|
|
12
|
-
import { simplifyBlocks } from "./simplifyBlocksRehypePlugin";
|
|
13
12
|
import { removeUnderlines } from "./removeUnderlinesRehypePlugin";
|
|
13
|
+
import { simplifyBlocks } from "./simplifyBlocksRehypePlugin";
|
|
14
14
|
|
|
15
15
|
export async function blocksToHTML(
|
|
16
16
|
blocks: Block[],
|