sandros94 / nuxt-markdown-render

A Nuxt wrapper for the popular markdown-it.
https://www.npmjs.com/package/nuxt-markdown-render
MIT License
7 stars 1 forks source link

bug: I should not use `ref`s that aren't top-level #13

Closed sandros94 closed 7 months ago

sandros94 commented 7 months ago

It has been pointed to me that I should not use refs inside plugins, and indeed this breaks a number of functionalities I wanted to implement in the future. I'm considering to revert the plugin idea and go back to square one with only composable + component.

I guess I should start working on pre-releases instead of creating non-working majors

https://github.com/Sandros94/nuxt-markdown-render/blob/dd265d77c81be762f49cc9631ab6c815ebf1a9bf/src/runtime/plugins/nuxt-markdown.ts#L23