nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.08k stars 624 forks source link

[MDC] Block Components with PascalCase are not working #2497

Closed aaharu closed 8 months ago

aaharu commented 8 months ago

Environment


Reproduction

https://stackblitz.com/edit/nuxt-starter-zvrsnm?file=content%2Fblock.md

Describe the bug

MDC's block components failed to resolve components when I wrote it in PascalCase. Is this by design?

components/content/HeroHero.vue

::HeroHero(Block components) doesn't work, but :HeroHero(Inline components) works fine.

::hero-hero
It works!

#description
hero-hero
::

::HeroHero
☑️ `<HeroHero>:[Vue warn]: Failed to resolve component: Herohero`

#description
HeroHero
::

Additional context

No response

Logs

No response

farnabaz commented 8 months ago

Thanks for the reproduction. It is fixed in https://github.com/nuxtlabs/remark-mdc/commit/9d2d00e55ee17d3f8f594bc8b457508f95ce1424 and will be released in next patch.

aaharu commented 8 months ago

This issue has been resolved by remark-mdc v3.0.1. https://github.com/nuxtlabs/remark-mdc/releases/tag/v3.0.1

Thanks!