@lofcz/platejs-markdown 53.1.4 → 53.1.5
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/index.js +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1149,7 +1149,7 @@ const serializeMdWithSourceMap = (editor, options) => {
|
|
|
1149
1149
|
const startLine = info.now.line;
|
|
1150
1150
|
const emitted = handler(node, parent, state, info);
|
|
1151
1151
|
const source = node?.data?.sourceMap;
|
|
1152
|
-
if (source
|
|
1152
|
+
if (source) pushSegment(source, emitted, startLine, startLine + (emitted.replace(/(?:\r?\n|\r)+$/g, "").split(/\r?\n|\r/g).length - 1));
|
|
1153
1153
|
if (type === "table" && Array.isArray(node?.children)) for (let r = 0; r < node.children.length; r++) {
|
|
1154
1154
|
const line = r === 0 ? startLine : startLine + 1 + r;
|
|
1155
1155
|
const cells = node.children[r]?.children;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lofcz/platejs-markdown",
|
|
3
|
-
"version": "53.1.
|
|
3
|
+
"version": "53.1.5",
|
|
4
4
|
"description": "Markdown serializer plugin for Plate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"remark-emoji": "5.0.1",
|
|
52
52
|
"remark-gfm": "4.0.1",
|
|
53
53
|
"remark-math": "6.0.0",
|
|
54
|
-
"@
|
|
54
|
+
"@platejs/footnote": "npm:@lofcz/platejs-footnote@53.0.0",
|
|
55
55
|
"platejs": "npm:@lofcz/platejs@53.1.1",
|
|
56
|
-
"@
|
|
56
|
+
"@plate/scripts": "1.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"platejs": ">=53.0.0",
|