notebook-mdx
Version:
Jupyter Notebook support for MDX via Remark and Rehype plugins
24 lines (23 loc) • 738 B
TypeScript
import { Root } from "mdast";
import { Plugin } from "unified";
//#region src/remark-notebook-directive.d.ts
interface NotebookDirectiveOptions {
/**
* Base directory for resolving relative notebook paths
* Defaults to the directory of the processed file
*/
baseDir?: string;
/**
* Custom component name to use for rendering notebooks
* Defaults to 'NotebookLoader'
*/
componentName?: string;
}
/**
* Remark plugin to handle notebook directives
* Requires remark-directive to be used before this plugin
*/
declare const remarkNotebookDirective: Plugin<[NotebookDirectiveOptions?], Root>;
//#endregion
export { NotebookDirectiveOptions, remarkNotebookDirective };
//# sourceMappingURL=server-DmIcElEC.d.ts.map