@milkdown/preset-commonmark 6.5.2 → 6.5.3
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/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +228 -219
- package/lib/index.es.js.map +1 -1
- package/lib/mark/code-inline.d.ts +1 -1
- package/lib/mark/code-inline.d.ts.map +1 -1
- package/lib/mark/em.d.ts +1 -1
- package/lib/mark/em.d.ts.map +1 -1
- package/lib/mark/index.d.ts.map +1 -1
- package/lib/mark/link.d.ts +4 -3
- package/lib/mark/link.d.ts.map +1 -1
- package/lib/mark/strong.d.ts +1 -1
- package/lib/mark/strong.d.ts.map +1 -1
- package/lib/node/blockquote.d.ts +1 -1
- package/lib/node/blockquote.d.ts.map +1 -1
- package/lib/node/bullet-list.d.ts +1 -1
- package/lib/node/bullet-list.d.ts.map +1 -1
- package/lib/node/code-fence.d.ts.map +1 -1
- package/lib/node/doc.d.ts +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 +2 -2
- package/lib/node/heading.d.ts.map +1 -1
- package/lib/node/hr.d.ts +1 -1
- package/lib/node/hr.d.ts.map +1 -1
- package/lib/node/image.d.ts +2 -2
- package/lib/node/image.d.ts.map +1 -1
- package/lib/node/index.d.ts +1 -1
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/list-item.d.ts +2 -2
- package/lib/node/list-item.d.ts.map +1 -1
- package/lib/node/ordered-list.d.ts +1 -1
- package/lib/node/ordered-list.d.ts.map +1 -1
- package/lib/node/paragraph.d.ts +1 -1
- package/lib/node/paragraph.d.ts.map +1 -1
- package/lib/node/text.d.ts +1 -1
- package/lib/node/text.d.ts.map +1 -1
- package/lib/plugin/add-order-in-list.d.ts +1 -1
- package/lib/plugin/add-order-in-list.d.ts.map +1 -1
- package/lib/plugin/filter-html.d.ts +1 -1
- package/lib/plugin/filter-html.d.ts.map +1 -1
- package/lib/plugin/index.d.ts +1 -1
- package/lib/plugin/index.d.ts.map +1 -1
- package/lib/plugin/inline-nodes-cursor.d.ts.map +1 -1
- package/lib/plugin/inline-sync/config.d.ts +8 -8
- package/lib/plugin/inline-sync/config.d.ts.map +1 -1
- package/lib/plugin/inline-sync/context.d.ts +5 -5
- package/lib/plugin/inline-sync/context.d.ts.map +1 -1
- package/lib/plugin/inline-sync/index.d.ts +1 -1
- package/lib/plugin/inline-sync/index.d.ts.map +1 -1
- package/lib/plugin/inline-sync/regexp.d.ts.map +1 -1
- package/lib/plugin/inline-sync/replacer.d.ts +3 -3
- package/lib/plugin/inline-sync/replacer.d.ts.map +1 -1
- package/lib/plugin/inline-sync/utils.d.ts +2 -2
- package/lib/plugin/inline-sync/utils.d.ts.map +1 -1
- package/lib/supported-keys.d.ts +1 -1
- package/lib/supported-keys.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/index.ts +52 -52
- package/src/mark/code-inline.ts +56 -55
- package/src/mark/em.ts +36 -36
- package/src/mark/index.ts +9 -9
- package/src/mark/link.ts +250 -223
- package/src/mark/strong.ts +37 -37
- package/src/node/blockquote.ts +35 -35
- package/src/node/bullet-list.ts +65 -65
- package/src/node/code-fence.ts +236 -229
- package/src/node/doc.ts +21 -21
- package/src/node/hardbreak.ts +108 -107
- package/src/node/heading.ts +275 -272
- package/src/node/hr.ts +55 -55
- package/src/node/image.ts +216 -210
- package/src/node/index.ts +38 -38
- package/src/node/list-item.ts +139 -140
- package/src/node/ordered-list.ts +71 -71
- package/src/node/paragraph.ts +55 -53
- package/src/node/text.ts +18 -18
- package/src/plugin/add-order-in-list.ts +15 -15
- package/src/plugin/filter-html.ts +31 -33
- package/src/plugin/index.ts +13 -13
- package/src/plugin/inline-nodes-cursor.ts +78 -79
- package/src/plugin/inline-sync/config.ts +46 -45
- package/src/plugin/inline-sync/context.ts +88 -83
- package/src/plugin/inline-sync/index.ts +46 -42
- package/src/plugin/inline-sync/regexp.ts +2 -2
- package/src/plugin/inline-sync/replacer.ts +33 -31
- package/src/plugin/inline-sync/utils.ts +53 -55
- package/src/supported-keys.ts +22 -21
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const ToggleInlineCode: import("@milkdown/core").CmdKey<undefined>;
|
|
2
|
-
export declare const codeInline: import("@milkdown/utils").MarkCreator<string,
|
|
2
|
+
export declare const codeInline: import("@milkdown/utils").MarkCreator<string, {}>;
|
|
3
3
|
//# sourceMappingURL=code-inline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-inline.d.ts","sourceRoot":"","sources":["../../src/mark/code-inline.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,4CAAmC,
|
|
1
|
+
{"version":3,"file":"code-inline.d.ts","sourceRoot":"","sources":["../../src/mark/code-inline.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,UAAU,mDAqDrB,CAAA"}
|
package/lib/mark/em.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const ToggleItalic: import("@milkdown/core").CmdKey<undefined>;
|
|
2
|
-
export declare const em: import("@milkdown/utils").MarkCreator<string,
|
|
2
|
+
export declare const em: import("@milkdown/utils").MarkCreator<string, {}>;
|
|
3
3
|
//# sourceMappingURL=em.d.ts.map
|
package/lib/mark/em.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"em.d.ts","sourceRoot":"","sources":["../../src/mark/em.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,4CAA+B,
|
|
1
|
+
{"version":3,"file":"em.d.ts","sourceRoot":"","sources":["../../src/mark/em.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,4CAA+B,CAAA;AACxD,eAAO,MAAM,EAAE,mDA6BZ,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":"AAMA,eAAO,MAAM,KAAK,6JAAyC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mark/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,6JAAyC,CAAA;AAE3D,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA;AACpB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}
|
package/lib/mark/link.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export declare const ToggleLink: import("@milkdown/core").CmdKey<string>;
|
|
2
2
|
export declare const ModifyLink: import("@milkdown/core").CmdKey<string>;
|
|
3
|
-
export
|
|
3
|
+
export interface LinkOptions {
|
|
4
4
|
input: {
|
|
5
|
-
placeholder
|
|
5
|
+
placeholder?: string;
|
|
6
6
|
buttonText?: string;
|
|
7
|
+
displayWhenSelected?: boolean;
|
|
7
8
|
};
|
|
8
|
-
}
|
|
9
|
+
}
|
|
9
10
|
export declare const link: import("@milkdown/utils").MarkCreator<string, LinkOptions>;
|
|
10
11
|
//# sourceMappingURL=link.d.ts.map
|
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":"AAaA,eAAO,MAAM,UAAU,yCAAqC,CAAA;AAC5D,eAAO,MAAM,UAAU,yCAAqC,CAAA;AAE5D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,mBAAmB,CAAC,EAAE,OAAO,CAAA;KAC9B,CAAA;CACF;AACD,eAAO,MAAM,IAAI,4DAqOf,CAAA"}
|
package/lib/mark/strong.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const ToggleBold: import("@milkdown/core").CmdKey<undefined>;
|
|
2
|
-
export declare const strong: import("@milkdown/utils").MarkCreator<string,
|
|
2
|
+
export declare const strong: import("@milkdown/utils").MarkCreator<string, {}>;
|
|
3
3
|
//# sourceMappingURL=strong.d.ts.map
|
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":"AASA,eAAO,MAAM,UAAU,4CAA6B,
|
|
1
|
+
{"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["../../src/mark/strong.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,4CAA6B,CAAA;AACpD,eAAO,MAAM,MAAM,mDA+BjB,CAAA"}
|
package/lib/node/blockquote.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const WrapInBlockquote: import("@milkdown/core").CmdKey<undefined>;
|
|
2
|
-
export declare const blockquote: import("@milkdown/utils").NodeCreator<"Blockquote",
|
|
2
|
+
export declare const blockquote: import("@milkdown/utils").NodeCreator<"Blockquote", {}>;
|
|
3
3
|
//# sourceMappingURL=blockquote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../src/node/blockquote.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,4CAAmC,
|
|
1
|
+
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../src/node/blockquote.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,UAAU,yDA4BrB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const WrapInBulletList: import("@milkdown/core").CmdKey<undefined>;
|
|
2
|
-
export declare const bulletList: import("@milkdown/utils").NodeCreator<"BulletList",
|
|
2
|
+
export declare const bulletList: import("@milkdown/utils").NodeCreator<"BulletList", {}>;
|
|
3
3
|
//# sourceMappingURL=bullet-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../src/node/bullet-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,4CAAmC,
|
|
1
|
+
{"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../src/node/bullet-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,UAAU,yDA0DrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-fence.d.ts","sourceRoot":"","sources":["../../src/node/code-fence.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-fence.d.ts","sourceRoot":"","sources":["../../src/node/code-fence.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,kBAAkB,QAAoC,CAAA;AACnE,eAAO,MAAM,eAAe,QAAoC,CAAA;AAEhE,eAAO,MAAM,iBAAiB,4CAAoC,CAAA;AAGlE,eAAO,MAAM,SAAS;;EA6MpB,CAAA"}
|
package/lib/node/doc.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const doc: import("@milkdown/utils").NodeCreator<string,
|
|
1
|
+
export declare const doc: import("@milkdown/utils").NodeCreator<string, {}>;
|
|
2
2
|
//# sourceMappingURL=doc.d.ts.map
|
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":"AAGA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../src/node/doc.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,mDAoBd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardbreak.d.ts","sourceRoot":"","sources":["../../src/node/hardbreak.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,SAAS,EAAa,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"hardbreak.d.ts","sourceRoot":"","sources":["../../src/node/hardbreak.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,SAAS,EAAa,MAAM,uBAAuB,CAAA;AAQpE,eAAO,MAAM,eAAe,4CAAkC,CAAA;AAE9D,eAAO,MAAM,wBAAwB,gBAA6C,CAAA;AAElF,eAAO,MAAM,SAAS;WAGT,MAAM,EAAE;EA2GnB,CAAA"}
|
package/lib/node/heading.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Node } from '@milkdown/prose/model';
|
|
1
|
+
import type { Node } from '@milkdown/prose/model';
|
|
2
2
|
import { PluginKey } from '@milkdown/prose/state';
|
|
3
3
|
import { SupportedKeys } from '../supported-keys';
|
|
4
|
-
|
|
4
|
+
type Keys = SupportedKeys['H1'] | SupportedKeys['H2'] | SupportedKeys['H3'] | SupportedKeys['H4'] | SupportedKeys['H5'] | SupportedKeys['H6'] | SupportedKeys['DowngradeHeading'];
|
|
5
5
|
export declare const TurnIntoHeading: import("@milkdown/core").CmdKey<number>;
|
|
6
6
|
export declare const DowngradeHeading: import("@milkdown/core").CmdKey<undefined>;
|
|
7
7
|
export declare const headingIdPluginKey: PluginKey<any>;
|
|
@@ -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":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,uBAAuB,CAAA;AAG3D,OAAO,EAAU,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAKzD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAMjD,KAAK,IAAI,GACH,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,kBAAkB,CAAC,CAAA;AAEvC,eAAO,MAAM,eAAe,yCAA0C,CAAA;AACtE,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,kBAAkB,gBAAuC,CAAA;AACtE,eAAO,MAAM,oBAAoB,gBAAyC,CAAA;AA+I1E,eAAO,MAAM,OAAO;kBAAoC,IAAI,KAAK,MAAM;oBAAkB,OAAO;EAyI/F,CAAA"}
|
package/lib/node/hr.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const InsertHr: import("@milkdown/core").CmdKey<string>;
|
|
2
|
-
export declare const hr: import("@milkdown/utils").NodeCreator<string,
|
|
2
|
+
export declare const hr: import("@milkdown/utils").NodeCreator<string, {}>;
|
|
3
3
|
//# sourceMappingURL=hr.d.ts.map
|
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":"AAOA,eAAO,MAAM,QAAQ,yCAAmC,
|
|
1
|
+
{"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../src/node/hr.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ,yCAAmC,CAAA;AACxD,eAAO,MAAM,EAAE,mDAoDb,CAAA"}
|
package/lib/node/image.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const ModifyImage: import("@milkdown/core").CmdKey<string>;
|
|
2
2
|
export declare const InsertImage: import("@milkdown/core").CmdKey<string>;
|
|
3
|
-
export
|
|
3
|
+
export interface ImageOptions {
|
|
4
4
|
isBlock: boolean;
|
|
5
5
|
placeholder: string;
|
|
6
6
|
input: {
|
|
7
7
|
placeholder: string;
|
|
8
8
|
buttonText?: string;
|
|
9
9
|
};
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
export declare const image: import("@milkdown/utils").NodeCreator<string, ImageOptions>;
|
|
12
12
|
//# sourceMappingURL=image.d.ts.map
|
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":"AAUA,eAAO,MAAM,WAAW,yCAAsC,CAAA;AAC9D,eAAO,MAAM,WAAW,yCAAsC,CAAA;AAE9D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF;AAGD,eAAO,MAAM,KAAK,6DAwMhB,CAAA"}
|
package/lib/node/index.d.ts
CHANGED
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":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAejD,eAAO,MAAM,KAAK,EAAE,UAAU,EAa7B,CAAA;AAED,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,MAAM,CAAA;AACpB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA"}
|
package/lib/node/list-item.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SupportedKeys } from '../supported-keys';
|
|
2
|
-
|
|
2
|
+
type Keys = SupportedKeys['SinkListItem'] | SupportedKeys['LiftListItem'] | SupportedKeys['NextListItem'];
|
|
3
3
|
export declare const SplitListItem: import("@milkdown/core").CmdKey<undefined>;
|
|
4
4
|
export declare const SinkListItem: import("@milkdown/core").CmdKey<undefined>;
|
|
5
5
|
export declare const LiftListItem: import("@milkdown/core").CmdKey<undefined>;
|
|
6
|
-
export declare const listItem: import("@milkdown/utils").NodeCreator<Keys,
|
|
6
|
+
export declare const listItem: import("@milkdown/utils").NodeCreator<Keys, {}>;
|
|
7
7
|
export {};
|
|
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":"AAWA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,KAAK,IAAI,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,CAAA;AAIzG,eAAO,MAAM,aAAa,4CAAgC,CAAA;AAC1D,eAAO,MAAM,YAAY,4CAA+B,CAAA;AACxD,eAAO,MAAM,YAAY,4CAA+B,CAAA;AAiDxD,eAAO,MAAM,QAAQ,iDAwFlB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const WrapInOrderedList: import("@milkdown/core").CmdKey<undefined>;
|
|
2
|
-
export declare const orderedList: import("@milkdown/utils").NodeCreator<"OrderedList",
|
|
2
|
+
export declare const orderedList: import("@milkdown/utils").NodeCreator<"OrderedList", {}>;
|
|
3
3
|
//# sourceMappingURL=ordered-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../src/node/ordered-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,4CAAoC,
|
|
1
|
+
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../src/node/ordered-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,4CAAoC,CAAA;AAGlE,eAAO,MAAM,WAAW,0DAgErB,CAAA"}
|
package/lib/node/paragraph.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const TurnIntoText: import("@milkdown/core").CmdKey<undefined>;
|
|
2
|
-
export declare const paragraph: import("@milkdown/utils").NodeCreator<"Text",
|
|
2
|
+
export declare const paragraph: import("@milkdown/utils").NodeCreator<"Text", {}>;
|
|
3
3
|
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -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":"AAWA,eAAO,MAAM,YAAY,4CAA+B,CAAA;AAGxD,eAAO,MAAM,SAAS,mDA+CpB,CAAA"}
|
package/lib/node/text.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const text: import("@milkdown/utils").NodeCreator<string,
|
|
1
|
+
export declare const text: import("@milkdown/utils").NodeCreator<string, {}>;
|
|
2
2
|
//# sourceMappingURL=text.d.ts.map
|
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":"AAGA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/node/text.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,mDAiBd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-order-in-list.d.ts","sourceRoot":"","sources":["../../src/plugin/add-order-in-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"add-order-in-list.d.ts","sourceRoot":"","sources":["../../src/plugin/add-order-in-list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAIjC,eAAO,MAAM,cAAc,cACC,IAAI,SAY/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-html.d.ts","sourceRoot":"","sources":["../../src/plugin/filter-html.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,IAAI,EAAU,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"filter-html.d.ts","sourceRoot":"","sources":["../../src/plugin/filter-html.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,IAAI,EAAU,MAAM,OAAO,CAAA;AA+BlD,eAAO,MAAM,gBAAgB,eACA,IAAI,SAShC,CAAA"}
|
package/lib/plugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { inlineSyncConfigCtx } from './inline-sync';
|
|
2
2
|
export { inlineSyncConfigCtx };
|
|
3
|
-
export declare const commonmarkPlugins: (import("@milkdown/utils").Metadata<import("@milkdown/utils").GetPlugin<string,
|
|
3
|
+
export declare const commonmarkPlugins: (import("@milkdown/utils").Metadata<import("@milkdown/utils").GetPlugin<string, {}>> & import("@milkdown/core").MilkdownPlugin)[];
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuB,mBAAmB,EAAE,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuB,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EAAE,mBAAmB,EAAE,CAAA;AAC9B,eAAO,MAAM,iBAAiB,mIAM7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-nodes-cursor.d.ts","sourceRoot":"","sources":["../../src/plugin/inline-nodes-cursor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAa,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"inline-nodes-cursor.d.ts","sourceRoot":"","sources":["../../src/plugin/inline-nodes-cursor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAa,MAAM,uBAAuB,CAAA;AAKzD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,QAAO,MAkF7C,CAAA"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Ctx } from '@milkdown/core';
|
|
2
|
-
import { Node, NodeType } from '@milkdown/prose/model';
|
|
3
|
-
import { Transaction } from '@milkdown/prose/state';
|
|
4
|
-
export
|
|
1
|
+
import type { Ctx } from '@milkdown/core';
|
|
2
|
+
import type { Node, NodeType } from '@milkdown/prose/model';
|
|
3
|
+
import type { Transaction } from '@milkdown/prose/state';
|
|
4
|
+
export type ShouldSyncNode = (context: {
|
|
5
5
|
prevNode: Node;
|
|
6
6
|
nextNode: Node;
|
|
7
7
|
ctx: Ctx;
|
|
8
8
|
tr: Transaction;
|
|
9
9
|
text: string;
|
|
10
10
|
}) => boolean;
|
|
11
|
-
export
|
|
11
|
+
export interface SyncNodePlaceholder {
|
|
12
12
|
hole: string;
|
|
13
13
|
punctuation: string;
|
|
14
14
|
char: string;
|
|
15
|
-
}
|
|
16
|
-
export
|
|
15
|
+
}
|
|
16
|
+
export interface InlineSyncConfig {
|
|
17
17
|
placeholderConfig: SyncNodePlaceholder;
|
|
18
18
|
shouldSyncNode: ShouldSyncNode;
|
|
19
19
|
globalNodes: Array<NodeType | string>;
|
|
20
20
|
movePlaceholder: (placeholderToMove: string, text: string) => string;
|
|
21
|
-
}
|
|
21
|
+
}
|
|
22
22
|
export declare const defaultConfig: InlineSyncConfig;
|
|
23
23
|
export declare const inlineSyncConfigCtx: import("@milkdown/core").Slice<InlineSyncConfig, "inlineSyncConfig">;
|
|
24
24
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/config.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IACrC,QAAQ,EAAE,IAAI,CAAA;IACd,QAAQ,EAAE,IAAI,CAAA;IACd,GAAG,EAAE,GAAG,CAAA;IACR,EAAE,EAAE,WAAW,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb,KAAK,OAAO,CAAA;AAEb,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,EAAE,mBAAmB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAA;IAC9B,WAAW,EAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,CAAA;IACrC,eAAe,EAAE,CAAC,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACrE;AAED,eAAO,MAAM,aAAa,EAAE,gBAyB3B,CAAA;AAED,eAAO,MAAM,mBAAmB,sEAAuF,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Ctx } from '@milkdown/core';
|
|
2
|
-
import { Node } from '@milkdown/prose/model';
|
|
3
|
-
import { EditorState } from '@milkdown/prose/state';
|
|
1
|
+
import type { Ctx } from '@milkdown/core';
|
|
2
|
+
import type { Node } from '@milkdown/prose/model';
|
|
3
|
+
import type { EditorState } from '@milkdown/prose/state';
|
|
4
4
|
export * from './config';
|
|
5
|
-
export
|
|
5
|
+
export interface InlineSyncContext {
|
|
6
6
|
text: string;
|
|
7
7
|
prevNode: Node;
|
|
8
8
|
nextNode: Node;
|
|
9
9
|
placeholder: string;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
export declare const getContextByState: (ctx: Ctx, state: EditorState) => InlineSyncContext | null;
|
|
12
12
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAMxD,cAAc,UAAU,CAAA;AAExB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,IAAI,CAAA;IACd,QAAQ,EAAE,IAAI,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;CACpB;AAmED,eAAO,MAAM,iBAAiB,QAAS,GAAG,SAAS,WAAW,KAAG,iBAAiB,GAAG,IAmCpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAMzD,cAAc,UAAU,CAAA;AAExB,eAAO,MAAM,mBAAmB,gBAAwC,CAAA;AACxE,eAAO,MAAM,mBAAmB,QAAS,GAAG,iBAkD3C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/regexp.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAAyE,
|
|
1
|
+
{"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/regexp.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAAyE,CAAA;AAEhG,eAAO,MAAM,iBAAiB,oBAAqB,MAAM,WACK,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ctx } from '@milkdown/core';
|
|
2
|
-
import { Attrs } from '@milkdown/prose/model';
|
|
3
|
-
import { EditorState, PluginKey, Transaction } from '@milkdown/prose/state';
|
|
1
|
+
import type { Ctx } from '@milkdown/core';
|
|
2
|
+
import type { Attrs } from '@milkdown/prose/model';
|
|
3
|
+
import type { EditorState, PluginKey, Transaction } from '@milkdown/prose/state';
|
|
4
4
|
export declare const runReplacer: (ctx: Ctx, key: PluginKey, state: EditorState, dispatch: (tr: Transaction) => void, attrs: Attrs) => void;
|
|
5
5
|
//# sourceMappingURL=replacer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replacer.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/replacer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"replacer.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/replacer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAOhF,eAAO,MAAM,WAAW,QACjB,GAAG,OACH,SAAS,SACP,WAAW,iBACH,WAAW,KAAK,IAAI,SAC5B,KAAK,SA6Bb,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node } from '@milkdown/prose/model';
|
|
2
|
-
import { SyncNodePlaceholder } from './config';
|
|
1
|
+
import type { Node } from '@milkdown/prose/model';
|
|
2
|
+
import type { SyncNodePlaceholder } from './config';
|
|
3
3
|
export declare const keepLink: (str: string) => string;
|
|
4
4
|
export declare const swap: (text: string, first: number, last: number) => string;
|
|
5
5
|
export declare const replacePunctuation: (holePlaceholder: string) => (text: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAGnD,eAAO,MAAM,QAAQ,QAAS,MAAM,WAUnC,CAAA;AAED,eAAO,MAAM,IAAI,SAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,WAQ7D,CAAA;AAED,eAAO,MAAM,kBAAkB,oBAAqB,MAAM,YAAY,MAAM,WACtB,CAAA;AAEtD,eAAO,MAAM,oBAAoB,gBAAiB,mBAAmB,YAAY,MAAM,WAkBtF,CAAA;AAED,eAAO,MAAM,UAAU,SAAU,IAAI,QAAQ,MAAM,eAAe,MAAM,WAkBvE,CAAA"}
|
package/lib/supported-keys.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ export declare const SupportedKeys: {
|
|
|
19
19
|
readonly SinkListItem: "SinkListItem";
|
|
20
20
|
readonly LiftListItem: "LiftListItem";
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type SupportedKeys = typeof SupportedKeys;
|
|
23
23
|
//# sourceMappingURL=supported-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-keys.d.ts","sourceRoot":"","sources":["../src/supported-keys.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;CAoBhB,
|
|
1
|
+
{"version":3,"file":"supported-keys.d.ts","sourceRoot":"","sources":["../src/supported-keys.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAA;AAGV,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milkdown/preset-commonmark",
|
|
3
|
-
"version": "6.5.2",
|
|
4
3
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"types": "./lib/index.d.ts",
|
|
7
|
-
"sideEffects": false,
|
|
4
|
+
"version": "6.5.3",
|
|
8
5
|
"license": "MIT",
|
|
9
|
-
"files": [
|
|
10
|
-
"lib",
|
|
11
|
-
"src"
|
|
12
|
-
],
|
|
13
6
|
"keywords": [
|
|
14
7
|
"milkdown",
|
|
15
8
|
"milkdown plugin",
|
|
16
9
|
"markdown",
|
|
17
10
|
"commonmark"
|
|
18
11
|
],
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"main": "./lib/index.es.js",
|
|
14
|
+
"types": "./lib/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"src"
|
|
18
|
+
],
|
|
24
19
|
"peerDependencies": {
|
|
25
20
|
"@milkdown/core": "^6.0.1",
|
|
26
21
|
"@milkdown/prose": "^6.0.1"
|
|
27
22
|
},
|
|
28
23
|
"dependencies": {
|
|
29
|
-
"@milkdown/utils": "6.5.2",
|
|
30
|
-
"@milkdown/exception": "6.5.2",
|
|
31
|
-
"unist-util-visit": "^4.0.0",
|
|
32
24
|
"remark-inline-links": "^6.0.0",
|
|
33
|
-
"tslib": "^2.4.0"
|
|
25
|
+
"tslib": "^2.4.0",
|
|
26
|
+
"unist-util-visit": "^4.0.0",
|
|
27
|
+
"@milkdown/exception": "6.5.3",
|
|
28
|
+
"@milkdown/utils": "6.5.3"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/unist": "^2.0.6",
|
|
32
|
+
"@milkdown/core": "6.5.3",
|
|
33
|
+
"@milkdown/prose": "6.5.3"
|
|
34
34
|
},
|
|
35
35
|
"nx": {
|
|
36
36
|
"targets": {
|
package/src/index.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
|
-
import { AtomList } from '@milkdown/utils'
|
|
2
|
+
import { AtomList } from '@milkdown/utils'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { ModifyLink, ToggleBold, ToggleInlineCode, ToggleItalic, ToggleLink, marks } from './mark'
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from './node'
|
|
21
|
-
import { commonmarkPlugins } from './plugin'
|
|
22
|
-
|
|
23
|
-
export * from './mark'
|
|
24
|
-
export * from './node'
|
|
25
|
-
export { inlineSyncConfigCtx } from './plugin'
|
|
26
|
-
export * from './supported-keys'
|
|
27
|
-
|
|
28
|
-
export const commonmarkNodes = AtomList.create([...nodes, ...marks])
|
|
29
|
-
export { commonmarkPlugins }
|
|
30
|
-
export const commonmark = AtomList.create([...commonmarkPlugins, ...commonmarkNodes])
|
|
6
|
+
InsertHardbreak,
|
|
7
|
+
InsertHr,
|
|
8
|
+
InsertImage,
|
|
9
|
+
LiftListItem,
|
|
10
|
+
ModifyImage,
|
|
11
|
+
SinkListItem,
|
|
12
|
+
SplitListItem,
|
|
13
|
+
TurnIntoCodeFence,
|
|
14
|
+
TurnIntoHeading,
|
|
15
|
+
TurnIntoText,
|
|
16
|
+
WrapInBlockquote,
|
|
17
|
+
WrapInBulletList,
|
|
18
|
+
WrapInOrderedList,
|
|
19
|
+
nodes,
|
|
20
|
+
} from './node'
|
|
21
|
+
import { commonmarkPlugins } from './plugin'
|
|
22
|
+
|
|
23
|
+
export * from './mark'
|
|
24
|
+
export * from './node'
|
|
25
|
+
export { inlineSyncConfigCtx } from './plugin'
|
|
26
|
+
export * from './supported-keys'
|
|
27
|
+
|
|
28
|
+
export const commonmarkNodes = AtomList.create([...nodes, ...marks])
|
|
29
|
+
export { commonmarkPlugins }
|
|
30
|
+
export const commonmark = AtomList.create([...commonmarkPlugins, ...commonmarkNodes])
|
|
31
31
|
|
|
32
32
|
export const commands = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} as const
|
|
57
|
-
export type Commands = typeof commands
|
|
33
|
+
ToggleInlineCode,
|
|
34
|
+
ToggleItalic,
|
|
35
|
+
ToggleLink,
|
|
36
|
+
ToggleBold,
|
|
37
|
+
|
|
38
|
+
ModifyLink,
|
|
39
|
+
ModifyImage,
|
|
40
|
+
|
|
41
|
+
WrapInBlockquote,
|
|
42
|
+
WrapInBulletList,
|
|
43
|
+
WrapInOrderedList,
|
|
44
|
+
|
|
45
|
+
TurnIntoCodeFence,
|
|
46
|
+
TurnIntoHeading,
|
|
47
|
+
TurnIntoText,
|
|
48
|
+
|
|
49
|
+
InsertHardbreak,
|
|
50
|
+
InsertHr,
|
|
51
|
+
InsertImage,
|
|
52
|
+
|
|
53
|
+
SplitListItem,
|
|
54
|
+
SinkListItem,
|
|
55
|
+
LiftListItem,
|
|
56
|
+
} as const
|
|
57
|
+
export type Commands = typeof commands
|