fumadocs-core
Version:
The library for building a documentation website in any React.js framework
17 lines (14 loc) • 784 B
TypeScript
import * as react from 'react';
import { ReactNode } from 'react';
import { Compatible } from 'vfile';
import { Components } from 'hast-util-to-jsx-runtime';
import { PluggableList } from 'unified';
interface MarkdownProps {
components?: Components;
}
declare function Markdown({ children: content, remarkPlugins, rehypePlugins, ...options }: MarkdownProps & {
remarkPlugins?: PluggableList;
rehypePlugins?: PluggableList;
children: Compatible;
}): Promise<react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | (string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined)>;
export { Markdown, type MarkdownProps };