UNPKG

@podlite/to-jsx

Version:

Render Podlite markup as React JSX components

27 lines (26 loc) 617 B
import React from 'react'; type Decoration = { start: number; end: number; tagName: string; properties?: { class?: string; }; }; export declare const extractPlainAndDecorations: (nodes: unknown) => { plain: string; decorations: Decoration[]; }; export type HighlightedCodeProps = { node: { content?: unknown; config?: unknown; }; children: React.ReactNode; keyProp: string | number; ctx: unknown; id?: string; wrap?: 'pre-code' | 'block'; }; declare const HighlightedCode: React.FC<HighlightedCodeProps>; export default HighlightedCode;