@milkdown/core
Advanced tools
Comparing version 7.2.4 to 7.3.0
@@ -79,3 +79,3 @@ var ve = (e, t, r) => { | ||
await e.waitTimers(U); | ||
const t = e.get(P), i = e.get(pe).reduce((m, y) => m.use(y), t); | ||
const t = e.get(P), i = e.get(pe).reduce((m, y) => m.use(y.plugin, y.options), t); | ||
e.set(P, i); | ||
@@ -82,0 +82,0 @@ const n = Object.fromEntries(e.get(X).map(([m, y]) => [m, Te(y)])), a = Object.fromEntries(e.get(Z).map(([m, y]) => [m, Te(y)])), h = new $e({ nodes: n, marks: a }); |
@@ -1,3 +0,3 @@ | ||
import type { Handlers } from 'mdast-util-to-markdown'; | ||
export declare const remarkHandlers: Partial<Handlers>; | ||
import type { Options } from 'remark-stringify'; | ||
export declare const remarkHandlers: Required<Options>['handlers']; | ||
//# sourceMappingURL=remark-handlers.d.ts.map |
@@ -79,3 +79,3 @@ var ve = (e, t, r) => { | ||
await e.waitTimers(U); | ||
const t = e.get(P), i = e.get(pe).reduce((m, y) => m.use(y), t); | ||
const t = e.get(P), i = e.get(pe).reduce((m, y) => m.use(y.plugin, y.options), t); | ||
e.set(P, i); | ||
@@ -82,0 +82,0 @@ const n = Object.fromEntries(e.get(X).map(([m, y]) => [m, Te(y)])), a = Object.fromEntries(e.get(Z).map(([m, y]) => [m, Te(y)])), h = new $e({ nodes: n, marks: a }); |
{ | ||
"name": "@milkdown/core", | ||
"type": "module", | ||
"version": "7.2.4", | ||
"version": "7.3.0", | ||
"license": "MIT", | ||
@@ -33,3 +33,2 @@ "repository": { | ||
"dependencies": { | ||
"mdast-util-to-markdown": "^1.5.0", | ||
"remark-parse": "^10.0.1", | ||
@@ -39,8 +38,8 @@ "remark-stringify": "^10.0.2", | ||
"unified": "^10.1.0", | ||
"@milkdown/exception": "7.2.4" | ||
"@milkdown/exception": "7.3.0" | ||
}, | ||
"devDependencies": { | ||
"@milkdown/ctx": "7.2.4", | ||
"@milkdown/prose": "7.2.4", | ||
"@milkdown/transformer": "7.2.4" | ||
"@milkdown/ctx": "7.3.0", | ||
"@milkdown/prose": "7.3.0", | ||
"@milkdown/transformer": "7.3.0" | ||
}, | ||
@@ -47,0 +46,0 @@ "nx": { |
/* Copyright 2021, Milkdown by Mirone. */ | ||
import type { Handlers } from 'mdast-util-to-markdown' | ||
import type { Options } from 'remark-stringify' | ||
export const remarkHandlers: Partial<Handlers> = { | ||
export const remarkHandlers: Required<Options>['handlers'] = { | ||
strong: (node, _, state, info) => { | ||
@@ -6,0 +6,0 @@ const marker = node.marker || state.options.strong || '*' |
@@ -5,5 +5,3 @@ /* Copyright 2021, Milkdown by Mirone. */ | ||
import { Schema } from '@milkdown/prose/model' | ||
import type { | ||
MarkSchema, NodeSchema, RemarkParser, | ||
} from '@milkdown/transformer' | ||
import type { MarkSchema, NodeSchema, RemarkParser } from '@milkdown/transformer' | ||
@@ -54,3 +52,3 @@ import { withMeta } from '../__internal__' | ||
const processor = remarkPlugins.reduce((acc: RemarkParser, plug) => acc.use(plug), remark) | ||
const processor = remarkPlugins.reduce((acc: RemarkParser, plug) => acc.use(plug.plugin, plug.options), remark) | ||
ctx.set(remarkCtx, processor) | ||
@@ -57,0 +55,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
130881
8
1761
+ Added@milkdown/exception@7.3.0(transitive)
- Removedmdast-util-to-markdown@^1.5.0
- Removed@milkdown/exception@7.2.4(transitive)
Updated@milkdown/exception@7.3.0