Skip to content

Commit

Permalink
fix(crepe): ship automd with crepe and kit
Browse files Browse the repository at this point in the history
  • Loading branch information
quank123wip committed Nov 26, 2024
1 parent 7892c6e commit dfe03a7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/crepe/src/core/crepe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Editor, defaultValueCtx, editorViewOptionsCtx, rootCtx } from '@milkdow

import { commonmark } from '@milkdown/kit/preset/commonmark'
import { gfm } from '@milkdown/kit/preset/gfm'
import { automd } from '@milkdown/kit/preset/automd'
import { history } from '@milkdown/kit/plugin/history'
import { indent, indentConfig } from '@milkdown/kit/plugin/indent'
import { getMarkdown } from '@milkdown/kit/utils'
Expand Down Expand Up @@ -61,6 +62,7 @@ export class Crepe {
.use(trailing)
.use(clipboard)
.use(gfm)
.use(automd)

const promiseList: Promise<unknown>[] = []

Expand Down
9 changes: 9 additions & 0 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"./prose/tables/style/tables.css": "./src/prose/tables/style/tables.css",
"./preset/commonmark": "./src/preset/commonmark.ts",
"./preset/gfm": "./src/preset/gfm.ts",
"./plugin/automd": "./src/plugin/automd.ts",
"./plugin/block": "./src/plugin/block.ts",
"./plugin/clipboard": "./src/plugin/clipboard.ts",
"./plugin/cursor": "./src/plugin/cursor.ts",
Expand Down Expand Up @@ -151,6 +152,10 @@
"types": "./lib/preset/gfm.d.ts",
"import": "./lib/preset/gfm.js"
},
"./plugin/automd": {
"types": "./lib/plugin/automd.d.ts",
"import": "./lib/plugin/automd.js"
},
"./plugin/block": {
"types": "./lib/plugin/block.d.ts",
"import": "./lib/plugin/block.js"
Expand Down Expand Up @@ -285,6 +290,9 @@
"preset/gfm": [
"lib/preset/gfm.d.ts"
],
"plugin/automd": [
"lib/plugin/automd.d.ts"
],
"plugin/block": [
"lib/plugin/block.d.ts"
],
Expand Down Expand Up @@ -355,6 +363,7 @@
"@milkdown/components": "workspace:*",
"@milkdown/core": "workspace:*",
"@milkdown/ctx": "workspace:*",
"@milkdown/plugin-automd": "workspace:*",
"@milkdown/plugin-block": "workspace:*",
"@milkdown/plugin-clipboard": "workspace:*",
"@milkdown/plugin-cursor": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions packages/kit/src/plugin/automd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@milkdown/plugin-automd'
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dfe03a7

Please sign in to comment.