reactjs-tiptap-editor
Version:
A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React
18 lines (17 loc) • 439 B
TypeScript
import { Node } from '@tiptap/core';
export * from './components/RichTextKatex';
export interface IKatexAttrs {
text?: string;
macros?: string;
}
interface IKatexOptions {
HTMLAttributes: Record<string, any>;
}
declare module '@tiptap/core' {
interface Commands<ReturnType> {
katex: {
setKatex: (arg?: IKatexAttrs) => ReturnType;
};
}
}
export declare const Katex: Node<IKatexOptions, any>;