UNPKG

@remirror/extension-code-block

Version:

Unleash the inner coder with code blocks for your remirror editor.

13 lines (12 loc) 403 B
/** * @module * * A formatter for code which can be consumed via * `@remirror/extension-code-block/formatter`. */ import type { FormattedContent, FormatterProps } from './code-block-types'; /** * A prettier based code formatter which can be dropped in for use within the * `CodeBlockExtension`. */ export declare function formatter(props: FormatterProps): Promise<FormattedContent | undefined>;