fumadocs-core
Version:
The React.js library for building a documentation website
26 lines • 699 B
TypeScript
import { Processor, Transformer } from "unified";
import { Root } from "mdast";
type CodeTabType = 'CodeBlockTabs' | 'Tabs';
interface RemarkCodeTabOptions {
Tabs?: CodeTabType;
/**
* Parse MDX in tab values
*
* @defaultValue false
*/
parseMdx?: boolean;
}
declare module 'mdast' {
interface CodeData {
/**
* [Fumadocs: remark-code-tab] the associated tab value
*/
tab?: string;
/**
* [Fumadocs: remark-code-tab] the associated tab group ID
*/
tabGroup?: string;
}
}
declare function remarkCodeTab(this: Processor, { parseMdx, Tabs }?: RemarkCodeTabOptions): Transformer<Root, Root>;
export { remarkCodeTab as n, RemarkCodeTabOptions as t };