UNPKG

medium-proeditor

Version:

A powerful & customizable Medium-style rich text editor

14 lines 630 B
import type { MarkType } from 'prosemirror-model'; import { InputRule, type InputRuleFinder } from '../InputRule'; import type { ExtendedRegExpMatchArray } from '../types'; /** * Build an input rule that adds a mark when the * matched text is typed into it. * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules */ export declare function markInputRule(config: { find: InputRuleFinder; type: MarkType; getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null; }): InputRule; //# sourceMappingURL=markInputRule.d.ts.map