@lofcz/platejs-markdown 53.0.0 → 53.1.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1370,7 +1370,7 @@ const defaultRules = {
1370
1370
  }),
1371
1371
  serialize: (node, options) => {
1372
1372
  const children = convertNodesSerialize(node.children, options);
1373
- if (children.length === 1 && children[0]?.type === "text" && children[0].value === node.url && BARE_AUTOLINK_PROTOCOL_REGEX.test(node.url ?? "")) return {
1373
+ if (children.length === 1 && children[0]?.type === "text" && children[0].value === node.url && options.remarkStringifyOptions?.resourceLink !== true && BARE_AUTOLINK_PROTOCOL_REGEX.test(node.url ?? "")) return {
1374
1374
  type: "html",
1375
1375
  value: node.url
1376
1376
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lofcz/platejs-markdown",
3
- "version": "53.0.0",
3
+ "version": "53.1.1",
4
4
  "description": "Markdown serializer plugin for Plate",
5
5
  "keywords": [
6
6
  "markdown",
@@ -53,7 +53,7 @@
53
53
  "remark-math": "6.0.0",
54
54
  "@plate/scripts": "1.0.0",
55
55
  "@platejs/footnote": "npm:@lofcz/platejs-footnote@53.0.0",
56
- "platejs": "npm:@lofcz/platejs@53.0.0"
56
+ "platejs": "npm:@lofcz/platejs@53.1.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "platejs": ">=53.0.0",