Can't seem to get vp-raw (markdown raw) to work #4709
-
I am creating a internal component library for a company. We use vitepress to generate documentation. I have searched issues and discussions and all seem to point to https://vitepress.dev/guide/markdown#raw which seems like the right path. But it does not seem to work for me? I've created a component in my vitepress directory that loads another vue component asynchronously (just like shadcn-vue for example) I followed the instructions for markdown raw (https://vitepress.dev/guide/markdown#raw) but these don't seem to work? Here is a small Stackblitz reproduction I've style the class to don't show list-style. But vp-doc is always adding that list style Does anyone know how I can make sure that vitepress css does not bleed into my component previews? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Change the includeFiles in postcss config to this |
Beta Was this translation helpful? Give feedback.
Change the includeFiles in postcss config to this
[/base\.css/, /vp-doc\.css/]
https://stackblitz.com/edit/vite-wemzvjix?file=docs/postcss.config.mjs,docs/example.md,docs/.vitepress/theme/custom.css