Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@milkdown/preset-commonmark

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@milkdown/preset-commonmark - npm Package Compare versions

Comparing version 5.3.1 to 5.3.2

17

lib/index.es.js

@@ -59,3 +59,5 @@ var __defProp = Object.defineProperty;

schema: () => ({
excludes: "_",
priority: 100,
code: true,
inclusive: false,
parseDOM: [{ tag: "code" }],

@@ -73,5 +75,4 @@ toDOM: (mark) => ["code", { class: utils.getClassName(mark.attrs, "code-inline", style) }],

match: (mark) => mark.type.name === id$a,
runner: (state, _, node) => {
state.addNode("inlineCode", void 0, node.text || "");
return true;
runner: (state, mark, node) => {
state.withMark(mark, "inlineCode", node.text || "");
}

@@ -331,3 +332,3 @@ }

shortcuts: {
[SupportedKeys.BulletList]: createShortcut(WrapInBulletList, "Mod-Shift-8")
[SupportedKeys.BulletList]: createShortcut(WrapInBulletList, "Mod-Alt-8")
}

@@ -495,3 +496,3 @@ };

return [
"div",
"pre",
{

@@ -501,3 +502,3 @@ "data-language": node.attrs.language,

},
["pre", ["code", { spellCheck: "false" }, 0]]
["code", { spellCheck: "false" }, 0]
];

@@ -1262,3 +1263,3 @@ },

shortcuts: {
[SupportedKeys.OrderedList]: createShortcut(WrapInOrderedList, "Mod-Shift-7")
[SupportedKeys.OrderedList]: createShortcut(WrapInOrderedList, "Mod-Alt-7")
}

@@ -1265,0 +1266,0 @@ }));

{
"name": "@milkdown/preset-commonmark",
"version": "5.3.1",
"version": "5.3.2",
"type": "module",

@@ -19,19 +19,13 @@ "main": "./lib/index.es.js",

],
"peerDependencies": {
"@milkdown/core": "*"
},
"dependencies": {
"@emotion/css": "^11.1.3",
"@milkdown/utils": "5.3.1",
"@milkdown/prose": "5.3.2",
"@milkdown/core": "5.3.2",
"@milkdown/design-system": "5.3.2",
"@milkdown/utils": "5.3.2",
"remark-inline-links": "^6.0.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@milkdown/prose": "5.3.1",
"@milkdown/core": "5.3.1",
"@milkdown/design-system": "5.3.1"
},
"scripts": {
"start": "vite",
"watch": "vite build --watch",
"start": "vite build --watch",
"test": "vitest",

@@ -38,0 +32,0 @@ "tsc": "tsc --noEmit",

@@ -29,3 +29,5 @@ /* Copyright 2021, Milkdown by Mirone. */

schema: () => ({
excludes: '_',
priority: 100,
code: true,
inclusive: false,
parseDOM: [{ tag: 'code' }],

@@ -43,6 +45,4 @@ toDOM: (mark) => ['code', { class: utils.getClassName(mark.attrs, 'code-inline', style) }],

match: (mark) => mark.type.name === id,
runner: (state, _, node) => {
state.addNode('inlineCode', undefined, node.text || '');
return true;
runner: (state, mark, node) => {
state.withMark(mark, 'inlineCode', node.text || '');
},

@@ -49,0 +49,0 @@ },

@@ -39,5 +39,5 @@ /* Copyright 2021, Milkdown by Mirone. */

shortcuts: {
[SupportedKeys.BulletList]: createShortcut(WrapInBulletList, 'Mod-Shift-8'),
[SupportedKeys.BulletList]: createShortcut(WrapInBulletList, 'Mod-Alt-8'),
},
};
});

@@ -174,3 +174,3 @@ /* Copyright 2021, Milkdown by Mirone. */

return [
'div',
'pre',
{

@@ -180,3 +180,3 @@ 'data-language': node.attrs.language,

},
['pre', ['code', { spellCheck: 'false' }, 0]],
['code', { spellCheck: 'false' }, 0],
];

@@ -183,0 +183,0 @@ },

@@ -67,4 +67,4 @@ /* Copyright 2021, Milkdown by Mirone. */

shortcuts: {
[SupportedKeys.OrderedList]: createShortcut(WrapInOrderedList, 'Mod-Shift-7'),
[SupportedKeys.OrderedList]: createShortcut(WrapInOrderedList, 'Mod-Alt-7'),
},
}));

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc