@brendonovich/kobalte__solidbase
Version:
Fully featured, fully customisable static site generation for SolidStart
21 lines (17 loc) • 625 B
text/typescript
import type * as mdx from "@mdx-js/mdx";
import type { Pluggable } from "unified";
import type { Plugin as VitePlugin } from "vite";
export type RemarkPlugin = Pluggable | false;
export type RehypePlugin = Pluggable | false;
export interface MdxOptions
extends Omit<mdx.CompileOptions, "remarkPlugins" | "rehypePlugins"> {
remarkPlugins?: Readonly<RemarkPlugin>[];
rehypePlugins?: Readonly<RehypePlugin>[];
}
export interface MdxPlugin extends VitePlugin {
mdxOptions: MdxOptions & {
// Plugin arrays always exist when accessed by Vite plugin.
remarkPlugins: RemarkPlugin[];
rehypePlugins: RehypePlugin[];
};
}