unplugin / unplugin-vue-markdown

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

Vite example didn't work - 2 bugs : Element is missing end tag and Unknown word #29

Open JereMiO opened 11 months ago

JereMiO commented 11 months ago

Describe the bug

Hello, I just would like to try the mardown example.

I encounter 2 error messages :

[vite] Internal server error: Element is missing end tag. Plugin: vite:vue File: C:/Users/X/Desktop/vite/README.md:28:1 26 | plugins: [ 27 | Vue({ 28 | include: [/.vue$/, /.md$/], // <-- allows Vue to compile Markdown files | ^ 29 | }),

[vite] Internal server error: C:/Users/W/Desktop/vite/pages/index.md:6:10: Unknown word Plugin: vite:vue File: C:/Users/X/Desktop/vite/pages/index.md:35:10 34 | } 35 | 36 |
| ^

I am available for further questions

Reproduction

Minimal reproduction is on examples/vite folder

System Info

Win10 64bits,
Node 18.18.0
Npm 9.8.1
Firefox 118.0.1

------------
  System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
    Memory: 18.63 GB / 31.92 GB
  Binaries:
    Node: 18.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.8.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Chrome: 117.0.5938.92
    Edge: Spartan (44.19041.1266.0), Chromium (117.0.2045.43)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

npm

Validations

jfitzsimmons2 commented 1 month ago

I noticed that removing the <details> and <summary> tags from README.md fixes this issue