nuxt-community / markdownit-module

Markdownit for Nuxt 2
MIT License
48 stars 11 forks source link

When runtime is true @nuxtjs/markdownit-loader option is broken #54

Open odanado opened 2 years ago

odanado commented 2 years ago

Here is delete options.use. https://github.com/nuxt-community/markdownit-module/blob/d615e56dcc72ad9f4b8b8a443e4970d7637e1d75/src/runtime/plugin.js#L10

This code unintentionally changes the moduleLoader option. https://github.com/nuxt-community/markdownit-module/blob/d615e56dcc/src/module.ts#L22

Specifying runtime: false solves this problem, but $md.render will not be available

minimal reproduction repository: https://github.com/odan-sandbox/nuxt-markdown-it-plugin-sandbox Related: https://github.com/nuxt-community/markdownit-module/issues/29