fumadocs-core
Version:
The React.js library for building a documentation website
32 lines (31 loc) • 959 B
TypeScript
import { Processor, Transformer } from "unified";
import { Code, Root } from "mdast";
import { MdxJsxFlowElement } from "mdast-util-mdx-jsx";
//#region src/mdx-plugins/remark-code-tab.d.ts
type TabType = keyof typeof Types;
interface RemarkCodeTabOptions {
Tabs?: TabType;
/**
* Parse MDX in tab values
*
* @defaultValue false
*/
parseMdx?: boolean;
}
declare module 'mdast' {
interface CodeData {
tab?: string;
}
}
declare const Types: {
CodeBlockTabs: {
convert(processor: Processor, nodes: Code[], withMdx?: boolean, withParent?: boolean): MdxJsxFlowElement;
};
Tabs: {
convert(processor: Processor, nodes: Code[], withMdx?: boolean, withParent?: boolean): MdxJsxFlowElement;
};
};
declare function remarkCodeTab(this: Processor, options?: RemarkCodeTabOptions): Transformer<Root, Root>;
//#endregion
export { remarkCodeTab as n, RemarkCodeTabOptions as t };
//# sourceMappingURL=remark-code-tab-CXsYlims.d.ts.map