@milkdown/preset-commonmark
Advanced tools
Comparing version 5.3.1 to 5.3.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
3141
207924
7
+ Added@milkdown/core@5.3.2
+ Added@milkdown/prose@5.3.2
+ Added@milkdown/core@5.3.2(transitive)
+ Added@milkdown/ctx@5.3.2(transitive)
+ Added@milkdown/design-system@5.3.2(transitive)
+ Added@milkdown/exception@5.3.2(transitive)
+ Added@milkdown/prose@5.3.2(transitive)
+ Added@milkdown/transformer@5.3.2(transitive)
+ Added@milkdown/utils@5.3.2(transitive)
+ Added@types/prosemirror-commands@1.3.0(transitive)
+ Added@types/prosemirror-dropcursor@1.5.0(transitive)
+ Added@types/prosemirror-gapcursor@1.3.0(transitive)
+ Added@types/prosemirror-history@1.3.0(transitive)
+ Added@types/prosemirror-inputrules@1.2.0(transitive)
+ Added@types/prosemirror-keymap@1.2.0(transitive)
+ Added@types/prosemirror-model@1.17.0(transitive)
+ Added@types/prosemirror-schema-list@1.2.0(transitive)
+ Added@types/prosemirror-state@1.4.0(transitive)
+ Added@types/prosemirror-transform@1.5.0(transitive)
+ Added@types/prosemirror-view@1.24.0(transitive)
+ Addeddiff@5.2.0(transitive)
+ Addedkleur@4.1.5(transitive)
+ Addedmdast-util-from-markdown@1.3.1(transitive)
+ Addedmdast-util-phrasing@3.0.1(transitive)
+ Addedmdast-util-to-markdown@1.5.0(transitive)
+ Addedmdast-util-to-string@3.2.0(transitive)
+ Addedmicromark@3.2.0(transitive)
+ Addedmicromark-core-commonmark@1.1.0(transitive)
+ Addedmicromark-factory-destination@1.1.0(transitive)
+ Addedmicromark-factory-label@1.1.0(transitive)
+ Addedmicromark-factory-space@1.1.0(transitive)
+ Addedmicromark-factory-title@1.1.0(transitive)
+ Addedmicromark-factory-whitespace@1.1.0(transitive)
+ Addedmicromark-util-character@1.2.0(transitive)
+ Addedmicromark-util-chunked@1.1.0(transitive)
+ Addedmicromark-util-classify-character@1.1.0(transitive)
+ Addedmicromark-util-combine-extensions@1.1.0(transitive)
+ Addedmicromark-util-decode-numeric-character-reference@1.1.0(transitive)
+ Addedmicromark-util-decode-string@1.1.0(transitive)
+ Addedmicromark-util-encode@1.1.0(transitive)
+ Addedmicromark-util-html-tag-name@1.2.0(transitive)
+ Addedmicromark-util-normalize-identifier@1.1.0(transitive)
+ Addedmicromark-util-resolve-all@1.1.0(transitive)
+ Addedmicromark-util-sanitize-uri@1.2.0(transitive)
+ Addedmicromark-util-subtokenize@1.1.0(transitive)
+ Addedmicromark-util-symbol@1.1.0(transitive)
+ Addedmicromark-util-types@1.1.0(transitive)
+ Addedmri@1.2.0(transitive)
+ Addedremark@14.0.3(transitive)
+ Addedremark-parse@10.0.2(transitive)
+ Addedremark-stringify@10.0.3(transitive)
+ Addedsade@1.8.1(transitive)
+ Addeduvu@0.5.6(transitive)
- Removed@milkdown/core@7.5.9(transitive)
- Removed@milkdown/ctx@7.5.9(transitive)
- Removed@milkdown/exception@5.3.17.5.9(transitive)
- Removed@milkdown/prose@7.5.9(transitive)
- Removed@milkdown/transformer@7.5.9(transitive)
- Removed@milkdown/utils@5.3.1(transitive)
- Removed@types/mdast@4.0.4(transitive)
- Removed@types/unist@3.0.3(transitive)
- Removeddevlop@1.1.0(transitive)
- Removedmdast-util-from-markdown@2.0.2(transitive)
- Removedmdast-util-phrasing@4.1.0(transitive)
- Removedmdast-util-to-markdown@2.1.2(transitive)
- Removedmdast-util-to-string@4.0.0(transitive)
- Removedmicromark@4.0.1(transitive)
- Removedmicromark-core-commonmark@2.0.2(transitive)
- Removedmicromark-factory-destination@2.0.1(transitive)
- Removedmicromark-factory-label@2.0.1(transitive)
- Removedmicromark-factory-space@2.0.1(transitive)
- Removedmicromark-factory-title@2.0.1(transitive)
- Removedmicromark-factory-whitespace@2.0.1(transitive)
- Removedmicromark-util-character@2.1.1(transitive)
- Removedmicromark-util-chunked@2.0.1(transitive)
- Removedmicromark-util-classify-character@2.0.1(transitive)
- Removedmicromark-util-combine-extensions@2.0.1(transitive)
- Removedmicromark-util-decode-numeric-character-reference@2.0.2(transitive)
- Removedmicromark-util-decode-string@2.0.1(transitive)
- Removedmicromark-util-encode@2.0.1(transitive)
- Removedmicromark-util-html-tag-name@2.0.1(transitive)
- Removedmicromark-util-normalize-identifier@2.0.1(transitive)
- Removedmicromark-util-resolve-all@2.0.1(transitive)
- Removedmicromark-util-sanitize-uri@2.0.1(transitive)
- Removedmicromark-util-subtokenize@2.0.3(transitive)
- Removedmicromark-util-symbol@2.0.1(transitive)
- Removedmicromark-util-types@2.0.1(transitive)
- Removedprosemirror-changeset@2.2.1(transitive)
- Removedremark@15.0.1(transitive)
- Removedremark-parse@11.0.0(transitive)
- Removedremark-stringify@11.0.0(transitive)
- Removedunified@11.0.5(transitive)
- Removedunist-util-is@6.0.0(transitive)
- Removedunist-util-stringify-position@4.0.0(transitive)
- Removedunist-util-visit@5.0.0(transitive)
- Removedunist-util-visit-parents@6.0.1(transitive)
- Removedvfile@6.0.3(transitive)
- Removedvfile-message@4.0.2(transitive)
Updated@milkdown/utils@5.3.2