@milkdown/preset-commonmark 7.3.5 → 7.4.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/__internal__/index.d.ts.map +1 -1
- package/lib/__internal__/serialize-text.d.ts.map +1 -1
- package/lib/__internal__/with-meta.d.ts.map +1 -1
- package/lib/composed/commands.d.ts.map +1 -1
- package/lib/composed/index.d.ts.map +1 -1
- package/lib/composed/inputrules.d.ts.map +1 -1
- package/lib/composed/keymap.d.ts.map +1 -1
- package/lib/composed/plugins.d.ts.map +1 -1
- package/lib/composed/schema.d.ts.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +81 -71
- package/lib/index.es.js.map +1 -1
- package/lib/mark/emphasis.d.ts.map +1 -1
- package/lib/mark/index.d.ts.map +1 -1
- package/lib/mark/inline-code.d.ts.map +1 -1
- package/lib/mark/link.d.ts.map +1 -1
- package/lib/mark/strong.d.ts.map +1 -1
- package/lib/node/blockquote.d.ts.map +1 -1
- package/lib/node/bullet-list.d.ts.map +1 -1
- package/lib/node/code-block.d.ts.map +1 -1
- package/lib/node/doc.d.ts.map +1 -1
- package/lib/node/hardbreak.d.ts.map +1 -1
- package/lib/node/heading.d.ts.map +1 -1
- package/lib/node/hr.d.ts.map +1 -1
- package/lib/node/html.d.ts.map +1 -1
- package/lib/node/image.d.ts.map +1 -1
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/list-item.d.ts +1 -1
- package/lib/node/list-item.d.ts.map +1 -1
- package/lib/node/ordered-list.d.ts.map +1 -1
- package/lib/node/paragraph.d.ts.map +1 -1
- package/lib/node/text.d.ts.map +1 -1
- package/lib/plugin/hardbreak-clear-mark-plugin.d.ts.map +1 -1
- package/lib/plugin/hardbreak-filter-plugin.d.ts.map +1 -1
- package/lib/plugin/index.d.ts.map +1 -1
- package/lib/plugin/inline-nodes-cursor-plugin.d.ts.map +1 -1
- package/lib/plugin/remark-add-order-in-list-plugin.d.ts.map +1 -1
- package/lib/plugin/remark-html-transformer.d.ts.map +1 -1
- package/lib/plugin/remark-inline-link-plugin.d.ts.map +1 -1
- package/lib/plugin/remark-line-break.d.ts.map +1 -1
- package/lib/plugin/remark-marker-plugin.d.ts.map +1 -1
- package/lib/plugin/sync-heading-id-plugin.d.ts.map +1 -1
- package/lib/plugin/sync-list-order-plugin.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/__internal__/index.ts +0 -1
- package/src/__internal__/serialize-text.ts +0 -1
- package/src/__internal__/with-meta.ts +0 -1
- package/src/composed/commands.ts +0 -1
- package/src/composed/index.ts +0 -1
- package/src/composed/inputrules.ts +0 -1
- package/src/composed/keymap.ts +0 -1
- package/src/composed/plugins.ts +0 -2
- package/src/composed/schema.ts +0 -2
- package/src/index.ts +0 -2
- package/src/mark/emphasis.ts +6 -1
- package/src/mark/index.ts +0 -1
- package/src/mark/inline-code.ts +0 -1
- package/src/mark/link.ts +0 -1
- package/src/mark/strong.ts +7 -2
- package/src/node/blockquote.ts +0 -1
- package/src/node/bullet-list.ts +0 -1
- package/src/node/code-block.ts +0 -1
- package/src/node/doc.ts +0 -1
- package/src/node/hardbreak.ts +0 -1
- package/src/node/heading.ts +0 -1
- package/src/node/hr.ts +0 -1
- package/src/node/html.ts +0 -1
- package/src/node/image.ts +0 -1
- package/src/node/index.ts +0 -2
- package/src/node/list-item.ts +3 -4
- package/src/node/ordered-list.ts +0 -1
- package/src/node/paragraph.ts +0 -1
- package/src/node/text.ts +0 -1
- package/src/plugin/hardbreak-clear-mark-plugin.ts +0 -1
- package/src/plugin/hardbreak-filter-plugin.ts +0 -1
- package/src/plugin/index.ts +0 -2
- package/src/plugin/inline-nodes-cursor-plugin.ts +0 -1
- package/src/plugin/remark-add-order-in-list-plugin.ts +0 -1
- package/src/plugin/remark-html-transformer.ts +0 -1
- package/src/plugin/remark-inline-link-plugin.ts +0 -1
- package/src/plugin/remark-line-break.ts +0 -1
- package/src/plugin/remark-marker-plugin.ts +0 -1
- package/src/plugin/sync-heading-id-plugin.ts +1 -2
- package/src/plugin/sync-list-order-plugin.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emphasis.d.ts","sourceRoot":"","sources":["../../src/mark/emphasis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"emphasis.d.ts","sourceRoot":"","sources":["../../src/mark/emphasis.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY,qCAAwB,CAAA;AAQjD,eAAO,MAAM,cAAc,mDA4BxB,CAAA;AAaH,eAAO,MAAM,qBAAqB,6CAEhC,CAAA;AAQF,eAAO,MAAM,qBAAqB,sCAQhC,CAAA;AAQF,eAAO,MAAM,2BAA2B,sCAQtC,CAAA;AASF,eAAO,MAAM,cAAc,2EAQzB,CAAA"}
|
package/lib/mark/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mark/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mark/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-code.d.ts","sourceRoot":"","sources":["../../src/mark/inline-code.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inline-code.d.ts","sourceRoot":"","sources":["../../src/mark/inline-code.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc,qCAA0B,CAAA;AAQrD,eAAO,MAAM,gBAAgB,qDAoB1B,CAAA;AAaH,eAAO,MAAM,uBAAuB,6CAyBlC,CAAA;AAQF,eAAO,MAAM,mBAAmB,sCAE9B,CAAA;AASF,eAAO,MAAM,gBAAgB,+EAQ3B,CAAA"}
|
package/lib/mark/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/mark/link.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/mark/link.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,QAAQ,qCAAoB,CAAA;AAQzC,eAAO,MAAM,UAAU,+CAoCpB,CAAA;AAQH,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,eAAO,MAAM,iBAAiB,8DAAuH,CAAA;AASrJ,eAAO,MAAM,iBAAiB,8DAyC5B,CAAA"}
|
package/lib/mark/strong.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["../../src/mark/strong.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["../../src/mark/strong.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,qCAAsB,CAAA;AAQ7C,eAAO,MAAM,YAAY,iDA4BtB,CAAA;AAaH,eAAO,MAAM,mBAAmB,6CAE9B,CAAA;AAQF,eAAO,MAAM,eAAe,sCAQ1B,CAAA;AASF,eAAO,MAAM,YAAY,qEAQvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../src/node/blockquote.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../src/node/blockquote.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAKlD,eAAO,MAAM,cAAc,qCAA0B,CAAA;AAQrD,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,YAAY,CAkBpD,CAAA;AAcH,eAAO,MAAM,yBAAyB,sCAA+E,CAAA;AAQrH,eAAO,MAAM,uBAAuB,6CAAgF,CAAA;AASpH,eAAO,MAAM,gBAAgB,+EAQ3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../src/node/bullet-list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../src/node/bullet-list.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,qCAA0B,CAAA;AAQrD,eAAO,MAAM,gBAAgB,sDAiD3B,CAAA;AAaF,eAAO,MAAM,yBAAyB,sCAAqF,CAAA;AAQ3H,eAAO,MAAM,uBAAuB,6CAAgF,CAAA;AASpH,eAAO,MAAM,gBAAgB,+EAQ3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../src/node/code-block.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../src/node/code-block.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa,qCAGvB,CAAA;AAQH,eAAO,MAAM,eAAe,qDAwD1B,CAAA;AAcF,eAAO,MAAM,wBAAwB,sCAEjC,CAAA;AASJ,eAAO,MAAM,sBAAsB,6CAA+G,CAAA;AAQlJ,eAAO,MAAM,8BAA8B;SAAwE,MAAM;cAAY,MAAM;EAOzI,CAAA;AASF,eAAO,MAAM,eAAe,6EAQ1B,CAAA"}
|
package/lib/node/doc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../src/node/doc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../src/node/doc.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,iCAenB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardbreak.d.ts","sourceRoot":"","sources":["../../src/node/hardbreak.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hardbreak.d.ts","sourceRoot":"","sources":["../../src/node/hardbreak.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,qCAIxB,CAAA;AAQF,eAAO,MAAM,eAAe,oDA4BzB,CAAA;AAaH,eAAO,MAAM,sBAAsB,6CAoBjC,CAAA;AASF,eAAO,MAAM,eAAe,6EAQ1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/node/heading.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/node/heading.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAUjD,iBAAS,yBAAyB,CAAC,IAAI,EAAE,IAAI,UAE5C;AAID,eAAO,MAAM,kBAAkB,wFAAwD,CAAA;AAQvF,eAAO,MAAM,WAAW,qCAAuB,CAAA;AAQ/C,eAAO,MAAM,aAAa,kDAmDxB,CAAA;AAcF,eAAO,MAAM,sBAAsB,sCAgBjC,CAAA;AAUF,eAAO,MAAM,oBAAoB,4CAS/B,CAAA;AAUF,eAAO,MAAM,uBAAuB,6CAkBhC,CAAA;AAUJ,eAAO,MAAM,aAAa,sKAkDxB,CAAA"}
|
package/lib/node/hr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../src/node/hr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../src/node/hr.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM,qCAAkB,CAAA;AAQrC,eAAO,MAAM,QAAQ,6CAgBlB,CAAA;AAcH,eAAO,MAAM,iBAAiB,sCAU5B,CAAA;AAQF,eAAO,MAAM,eAAe,6CAkB1B,CAAA"}
|
package/lib/node/html.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/node/html.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/node/html.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,qCAAoB,CAAA;AAOzC,eAAO,MAAM,UAAU,+CAyCrB,CAAA"}
|
package/lib/node/image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/node/image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/node/image.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,qCAAqB,CAAA;AAQ3C,eAAO,MAAM,WAAW,gDAyDtB,CAAA;AAaF,MAAM,WAAW,yBAAyB;IACxC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAID,eAAO,MAAM,kBAAkB,+DAa3B,CAAA;AASJ,eAAO,MAAM,kBAAkB,+DAkB7B,CAAA;AAUF,eAAO,MAAM,oBAAoB,sCAS/B,CAAA"}
|
package/lib/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,MAAM,CAAA;AACpB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AAEtB,cAAc,QAAQ,CAAA"}
|
package/lib/node/list-item.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export declare const sinkListItemCommand: import("@milkdown/utils").$Command<unk
|
|
|
4
4
|
export declare const liftListItemCommand: import("@milkdown/utils").$Command<unknown>;
|
|
5
5
|
export declare const splitListItemCommand: import("@milkdown/utils").$Command<unknown>;
|
|
6
6
|
export declare const liftFirstListItemCommand: import("@milkdown/utils").$Command<unknown>;
|
|
7
|
-
export declare const listItemKeymap: import("@milkdown/utils").$UserKeymap<"listItemKeymap", "SinkListItem" | "
|
|
7
|
+
export declare const listItemKeymap: import("@milkdown/utils").$UserKeymap<"listItemKeymap", "SinkListItem" | "LiftListItem" | "LiftFirstListItem" | "NextListItem">;
|
|
8
8
|
//# sourceMappingURL=list-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../src/node/list-item.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../src/node/list-item.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,qCAAwB,CAAA;AAQjD,eAAO,MAAM,cAAc,oDA2DxB,CAAA;AAwBH,eAAO,MAAM,mBAAmB,6CAAgF,CAAA;AAmBhH,eAAO,MAAM,mBAAmB,6CAAgF,CAAA;AAoBhH,eAAO,MAAM,oBAAoB,6CAAkF,CAAA;AAuCnH,eAAO,MAAM,wBAAwB,6CAAqE,CAAA;AAW1G,eAAO,MAAM,cAAc,iIA6BzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../src/node/ordered-list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../src/node/ordered-list.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,qCAA2B,CAAA;AAQvD,eAAO,MAAM,iBAAiB,uDAiD3B,CAAA;AAaH,eAAO,MAAM,0BAA0B,sCAKrC,CAAA;AAQF,eAAO,MAAM,wBAAwB,6CAAkF,CAAA;AASvH,eAAO,MAAM,iBAAiB,iFAQ5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../src/node/paragraph.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../src/node/paragraph.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,qCAAyB,CAAA;AAQnD,eAAO,MAAM,eAAe,oDA0BzB,CAAA;AAYH,eAAO,MAAM,mBAAmB,6CAAiF,CAAA;AASjH,eAAO,MAAM,eAAe,0EAQ1B,CAAA"}
|
package/lib/node/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/node/text.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/node/text.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,iCAcpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardbreak-clear-mark-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/hardbreak-clear-mark-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hardbreak-clear-mark-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/hardbreak-clear-mark-plugin.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,wBAAwB,kCAqCnC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardbreak-filter-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/hardbreak-filter-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hardbreak-filter-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/hardbreak-filter-plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,kEAAwD,CAAA;AASzF,eAAO,MAAM,qBAAqB,kCAuBhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,8BAA8B,CAAA;AAE5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAA;AAEzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-nodes-cursor-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/inline-nodes-cursor-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inline-nodes-cursor-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/inline-nodes-cursor-plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB,kCAmFlC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remark-add-order-in-list-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-add-order-in-list-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remark-add-order-in-list-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-add-order-in-list-plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B,oEASrC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remark-html-transformer.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-html-transformer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remark-html-transformer.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-html-transformer.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,qBAAqB,qEAahC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remark-inline-link-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-inline-link-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remark-inline-link-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-inline-link-plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,gEAAuD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remark-line-break.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-line-break.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remark-line-break.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-line-break.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,+DAmC1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remark-marker-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-marker-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remark-marker-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/remark-marker-plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,4DAOvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-heading-id-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/sync-heading-id-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-heading-id-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/sync-heading-id-plugin.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,kCA8C9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-list-order-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/sync-list-order-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-list-order-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/sync-list-order-plugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,mBAAmB,kCAyE9B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milkdown/preset-commonmark",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"remark-inline-links": "^7.0.0",
|
|
38
38
|
"tslib": "^2.5.0",
|
|
39
39
|
"unist-util-visit": "^5.0.0",
|
|
40
|
-
"@milkdown/exception": "7.
|
|
41
|
-
"@milkdown/utils": "7.
|
|
40
|
+
"@milkdown/exception": "7.4.0",
|
|
41
|
+
"@milkdown/utils": "7.4.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@milkdown/core": "7.
|
|
45
|
-
"@milkdown/ctx": "7.
|
|
46
|
-
"@milkdown/prose": "7.
|
|
47
|
-
"@milkdown/transformer": "7.
|
|
44
|
+
"@milkdown/core": "7.4.0",
|
|
45
|
+
"@milkdown/ctx": "7.4.0",
|
|
46
|
+
"@milkdown/prose": "7.4.0",
|
|
47
|
+
"@milkdown/transformer": "7.4.0"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/src/composed/commands.ts
CHANGED
package/src/composed/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { MilkdownPlugin } from '@milkdown/ctx'
|
|
3
2
|
import { createCodeBlockInputRule, insertHrInputRule, wrapInBlockquoteInputRule, wrapInBulletListInputRule, wrapInHeadingInputRule, wrapInOrderedListInputRule } from '../node'
|
|
4
3
|
import { emphasisStarInputRule, emphasisUnderscoreInputRule, inlineCodeInputRule, strongInputRule } from '../mark'
|
package/src/composed/keymap.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { MilkdownPlugin } from '@milkdown/ctx'
|
|
3
2
|
import { emphasisKeymap, inlineCodeKeymap, strongKeymap } from '../mark'
|
|
4
3
|
import { blockquoteKeymap, bulletListKeymap, codeBlockKeymap, hardbreakKeymap, headingKeymap, listItemKeymap, orderedListKeymap, paragraphKeymap } from '../node'
|
package/src/composed/plugins.ts
CHANGED
package/src/composed/schema.ts
CHANGED
package/src/index.ts
CHANGED
package/src/mark/emphasis.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { commandsCtx, remarkStringifyOptionsCtx } from '@milkdown/core'
|
|
3
2
|
import { $command, $inputRule, $markAttr, $markSchema, $useKeymap } from '@milkdown/utils'
|
|
4
3
|
import { toggleMark } from '@milkdown/prose/commands'
|
|
@@ -67,6 +66,9 @@ withMeta(toggleEmphasisCommand, {
|
|
|
67
66
|
/// Input rule for use `*` to create emphasis mark.
|
|
68
67
|
export const emphasisStarInputRule = $inputRule((ctx) => {
|
|
69
68
|
return markRule(/(?:^|[^*])\*([^*]+)\*$/, emphasisSchema.type(ctx), {
|
|
69
|
+
getAttr: () => ({
|
|
70
|
+
marker: '*',
|
|
71
|
+
}),
|
|
70
72
|
updateCaptured: ({ fullMatch, start }) =>
|
|
71
73
|
!fullMatch.startsWith('*') ? { fullMatch: fullMatch.slice(1), start: start + 1 } : {},
|
|
72
74
|
})
|
|
@@ -80,6 +82,9 @@ withMeta(emphasisStarInputRule, {
|
|
|
80
82
|
/// Input rule for use `_` to create emphasis mark.
|
|
81
83
|
export const emphasisUnderscoreInputRule = $inputRule((ctx) => {
|
|
82
84
|
return markRule(/(?:^|[^_])_([^_]+)_$/, emphasisSchema.type(ctx), {
|
|
85
|
+
getAttr: () => ({
|
|
86
|
+
marker: '_',
|
|
87
|
+
}),
|
|
83
88
|
updateCaptured: ({ fullMatch, start }) =>
|
|
84
89
|
!fullMatch.startsWith('_') ? { fullMatch: fullMatch.slice(1), start: start + 1 } : {},
|
|
85
90
|
})
|
package/src/mark/index.ts
CHANGED
package/src/mark/inline-code.ts
CHANGED
package/src/mark/link.ts
CHANGED
package/src/mark/strong.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { commandsCtx, remarkStringifyOptionsCtx } from '@milkdown/core'
|
|
3
2
|
import { $command, $inputRule, $markAttr, $markSchema, $useKeymap } from '@milkdown/utils'
|
|
4
3
|
import { toggleMark } from '@milkdown/prose/commands'
|
|
@@ -66,7 +65,13 @@ withMeta(toggleStrongCommand, {
|
|
|
66
65
|
|
|
67
66
|
/// A input rule that will capture the strong mark.
|
|
68
67
|
export const strongInputRule = $inputRule((ctx) => {
|
|
69
|
-
return markRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, strongSchema.type(ctx)
|
|
68
|
+
return markRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, strongSchema.type(ctx), {
|
|
69
|
+
getAttr: (match) => {
|
|
70
|
+
return {
|
|
71
|
+
marker: match[0].startsWith('*') ? '*' : '_',
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
})
|
|
70
75
|
})
|
|
71
76
|
|
|
72
77
|
withMeta(strongInputRule, {
|
package/src/node/blockquote.ts
CHANGED
package/src/node/bullet-list.ts
CHANGED
package/src/node/code-block.ts
CHANGED
package/src/node/doc.ts
CHANGED
package/src/node/hardbreak.ts
CHANGED
package/src/node/heading.ts
CHANGED
package/src/node/hr.ts
CHANGED
package/src/node/html.ts
CHANGED
package/src/node/image.ts
CHANGED
package/src/node/index.ts
CHANGED
package/src/node/list-item.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { commandsCtx } from '@milkdown/core'
|
|
3
2
|
import { expectDomTypeError } from '@milkdown/exception'
|
|
4
3
|
import { liftListItem, sinkListItem, splitListItem } from '@milkdown/prose/schema-list'
|
|
@@ -18,7 +17,7 @@ withMeta(listItemAttr, {
|
|
|
18
17
|
/// Schema for list item node.
|
|
19
18
|
export const listItemSchema = $nodeSchema('list_item', ctx => ({
|
|
20
19
|
group: 'listItem',
|
|
21
|
-
content: 'paragraph block*',
|
|
20
|
+
content: '(paragraph|blockquote) block*',
|
|
22
21
|
attrs: {
|
|
23
22
|
label: {
|
|
24
23
|
default: '•',
|
|
@@ -40,7 +39,7 @@ export const listItemSchema = $nodeSchema('list_item', ctx => ({
|
|
|
40
39
|
|
|
41
40
|
return {
|
|
42
41
|
label: dom.dataset.label,
|
|
43
|
-
listType: dom.dataset
|
|
42
|
+
listType: dom.dataset.listType,
|
|
44
43
|
spread: dom.dataset.spread,
|
|
45
44
|
}
|
|
46
45
|
},
|
|
@@ -118,7 +117,7 @@ withMeta(sinkListItemCommand, {
|
|
|
118
117
|
/// * List item 1
|
|
119
118
|
/// * List item 2
|
|
120
119
|
/// ```
|
|
121
|
-
export const liftListItemCommand = $command('
|
|
120
|
+
export const liftListItemCommand = $command('LiftListItem', ctx => () => liftListItem(listItemSchema.type(ctx)))
|
|
122
121
|
|
|
123
122
|
withMeta(liftListItemCommand, {
|
|
124
123
|
displayName: 'Command<liftListItemCommand>',
|
package/src/node/ordered-list.ts
CHANGED
package/src/node/paragraph.ts
CHANGED
package/src/node/text.ts
CHANGED
package/src/plugin/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { Plugin, PluginKey } from '@milkdown/prose/state'
|
|
3
2
|
import type { EditorView } from '@milkdown/prose/view'
|
|
4
3
|
import { $prose } from '@milkdown/utils'
|
|
@@ -11,7 +10,7 @@ export const syncHeadingIdPlugin = $prose((ctx) => {
|
|
|
11
10
|
const headingIdPluginKey = new PluginKey('MILKDOWN_HEADING_ID')
|
|
12
11
|
|
|
13
12
|
const updateId = (view: EditorView) => {
|
|
14
|
-
if (view.composing
|
|
13
|
+
if (view.composing)
|
|
15
14
|
return
|
|
16
15
|
|
|
17
16
|
const getId = ctx.get(headingIdGenerator.key)
|