UNPKG

react-native-markdown-renderer

Version:

Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer).

21 lines 634 B
import type { ReactNode } from 'react'; export interface ASTNode { type: string; sourceType: string; sourceInfo: string; sourceMeta: unknown; block: boolean; markup: string; key: string; content: string; tokenIndex: number; index: number; attributes: Record<string, string>; children: ASTNode[]; } export type RenderFunction = (node: ASTNode, children: ReactNode[], parentNodes: ASTNode[], styles: MarkdownStyles) => ReactNode; export interface RenderRules { [name: string]: RenderFunction; } export type MarkdownStyles = Record<string, unknown>; //# sourceMappingURL=types.d.ts.map