@fibery/prosemirror-schema 4.13.0 → 4.14.0
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/lib/src/create-schema.js
CHANGED
|
@@ -16,6 +16,8 @@ const mention_1 = require("./nodes/mention");
|
|
|
16
16
|
const fibery_view_1 = require("./nodes/fibery-view");
|
|
17
17
|
const check_list_1 = require("./nodes/check-list");
|
|
18
18
|
const check_item_1 = require("./nodes/check-item");
|
|
19
|
+
const math_display_1 = require("./nodes/math-display");
|
|
20
|
+
const math_inline_1 = require("./nodes/math-inline");
|
|
19
21
|
const code_block_1 = require("./nodes/code-block");
|
|
20
22
|
const video_1 = require("./nodes/video");
|
|
21
23
|
const file_1 = require("./nodes/file");
|
|
@@ -56,6 +58,8 @@ const createSchema = ({ sharedColorGenerator = null, headingToDOM = null, mediaT
|
|
|
56
58
|
callout: callout_1.callout,
|
|
57
59
|
columns: columns_1.columns,
|
|
58
60
|
column: column_1.column,
|
|
61
|
+
math_display: math_display_1.math_display,
|
|
62
|
+
math_inline: math_inline_1.math_inline,
|
|
59
63
|
};
|
|
60
64
|
let actualNodes = (0, prosemirror_schema_list_1.addListNodes)(base.spec.nodes, "paragraph block*", "block")
|
|
61
65
|
.append({ ...table_nodes_1.tableNodes })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.math_display = void 0;
|
|
4
|
+
exports.math_display = {
|
|
5
|
+
// important!
|
|
6
|
+
group: "block math",
|
|
7
|
+
content: "text*", // important!
|
|
8
|
+
atom: true, // important!
|
|
9
|
+
code: true, // important!
|
|
10
|
+
toDOM: () => ["math-display", { class: "math-node" }, 0],
|
|
11
|
+
parseDOM: [
|
|
12
|
+
{
|
|
13
|
+
tag: "math-display", // important!
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.math_inline = void 0;
|
|
4
|
+
exports.math_inline = {
|
|
5
|
+
// important!
|
|
6
|
+
group: "inline math",
|
|
7
|
+
content: "text*", // important!
|
|
8
|
+
inline: true, // important!
|
|
9
|
+
atom: true, // important!
|
|
10
|
+
toDOM: () => ["math-inline", { class: "math-node" }, 0],
|
|
11
|
+
parseDOM: [
|
|
12
|
+
{
|
|
13
|
+
tag: "math-inline", // important!
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
};
|