rspress-plugin-devkit
Version:
Rspress plugin develop kit.
15 lines (14 loc) • 651 B
TypeScript
import type { Plugin } from 'unified';
import type { Root as MDASTRoot } from 'mdast';
import type { Root as HASTRoot } from 'hast';
export type RemarkPluginFactory<PluginOptions = unknown> = Plugin<[
PluginOptions
], MDASTRoot>;
export type RehypePluginFactory<PluginOptions = unknown> = Plugin<[
PluginOptions
], HASTRoot>;
export { visit as unistVisit } from 'unist-util-visit';
export { fromMarkdown as MDASTFromMarkdown } from 'mdast-util-from-markdown';
export { toMarkdown as MDASTToMarkdown } from 'mdast-util-to-markdown';
export { toString as MDASTToString } from 'mdast-util-to-string';
export type { Plugin, MDASTRoot, HASTRoot };