UNPKG

@portabletext/plugin-character-pair-decorator

Version:

Automatically match a pair of characters and decorate the text in between

15 lines (12 loc) 276 B
import type {EditorSchema} from '@portabletext/editor' /** * @beta */ export declare function CharacterPairDecoratorPlugin(config: { decorator: ({schema}: {schema: EditorSchema}) => string | undefined pair: { char: string amount: number } }): null export {}