@portabletext/plugin-character-pair-decorator
Version:
Automatically match a pair of characters and decorate the text in between
24 lines (21 loc) • 426 B
TypeScript
import type {EditorContext} from '@portabletext/editor'
/**
* @public
*/
export declare function CharacterPairDecoratorPlugin(props: {
decorator: ({
context,
schema,
}: {
context: Pick<EditorContext, 'schema'>
/**
* @deprecated Use `context.schema` instead
*/
schema: EditorContext['schema']
}) => string | undefined
pair: {
char: string
amount: number
}
}): null
export {}