-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
There is the type of markdown option in astro config
markdown:{
syntaxHighlight: false | "shiki" | "prism";
shikiConfig: {
langs: ShikiLang[];
theme: import("shiki").BundledTheme | ShikiTheme;
themes: Record<string, import("shiki").BundledTheme | ShikiTheme>;
langAlias: Record<string, string>;
wrap: boolean | null;
transformers: ShikiTransformer[];
defaultColor?: string | false | undefined;
};
remarkPlugins: (string | [string, any] | RemarkPlugin | [RemarkPlugin, any])[];
rehypePlugins: (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];
remarkRehype: RemarkRehype;
gfm: boolean;
smartypants: boolean;
}The author often use remarkPlugins, rehypePlugins and transformers in shikiConfig,
So at least support for these three options should be provided
- Allow user to disable all or only disable a plugin
- Allow authors to choose to use user config or override
Metadata
Metadata
Assignees
Labels
No labels