antfu/vite-plugin-md

May I disable baseStyling for a custom markdown style

whidy opened this issue · 0 comments

whidy commented

The baseStyling is conflict with github-markdown.css dark mode.

light mode is ok as image below:

image

But dark mode:

image

We can see that code block almost "invisiable".

I've read source code, but not find out how to disable baseStyling in pipeline.

I can only edit souce code:

// before
// const metaExtracted = (0, import_function2.flow)(extractFrontmatter, baseStyling, frontmatterPreprocess, handlers("metaExtracted" /* metaExtracted */));
// after - baseStyling removed
const metaExtracted = (0, import_function2.flow)(extractFrontmatter, frontmatterPreprocess, handlers("metaExtracted" /* metaExtracted */));

If there is not option to disable baseStyling, Is that necessary to add one?