UNPKG

react-scitext

Version:

React component for rendering scientific text with Markdown, LaTeX, and SMILES support

35 lines 762 B
export type LatexEnv = { start: number; end: number; content: string; }; export type ContentMatch = { start: number; end: number; content: string; type: 'smiles' | 'env' | 'math' | 'heading'; }; export type RichTextProps = { content: string; renderAsMarkdown?: boolean; inline?: boolean; }; export type SmilesProps = { code: string; errorCallback: (error: unknown) => void; }; export type ProcessingOptions = { renderAsMarkdown: boolean; inline: boolean; }; export type MathFragment = { content: string; isBlock: boolean; isInline: boolean; isSelectiveInline: boolean; }; export type VariableMatch = { match: RegExpMatchArray; content: string; }; //# sourceMappingURL=index.d.ts.map