vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.25k stars 2.14k forks source link

How to disable all styles for a .vp-doc table #4309

Closed qianmoQ closed 4 weeks ago

qianmoQ commented 1 month ago

Describe the bug

image

My component style is the red box on the left, and the blue box on the right is the default of vitepress, which causes the style of my component to be overwritten. How can I configure the table style without using vitepress and use the style of my component?

我的组件样式是左侧红框的,右侧蓝框是 vitepress 默认的,导致覆盖了我组件的样式,我怎么才能配置不使用 vitepress 的 table 样式,用我组件的样式

Reproduction

None

Expected behavior

None

System Info

None

Additional context

No response

Validations

brc-dd commented 1 month ago

https://vitepress.dev/guide/markdown#raw (refer the postcss setup there and add vp-raw class to your component)

qianmoQ commented 4 weeks ago

Thank you