markdownit-module icon indicating copy to clipboard operation
markdownit-module copied to clipboard

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

Open odanado opened this issue 3 years ago • 0 comments

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

odanado avatar Apr 13 '22 16:04 odanado