unplugin / unplugin-vue-markdown

Compile Markdown to Vue component
MIT License
508 stars 27 forks source link

Using `<style>` in a Markdown file results in Vite error #30

Closed miosenpai closed 10 months ago

miosenpai commented 11 months ago

Describe the bug

The documentation states this package offers the same transformations as VitePress, which supports style blocks in Markdown. However, when I use style block in Markdown with unplugin-vue-markdown, a Vite error is triggered.

Reproduction

https://stackblitz.com/edit/vitejs-vite-qsh7dm

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.6.12 - /usr/local/bin/pnpm

Used Package Manager

npm

Validations

stackblitz[bot] commented 11 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.