[Vuejs]-Creating a custom Markdown-it plugin for Nuxt application results in TypeError when rendering in browser

0👍

This is a bug (or missing feature) in @nuxtjs/markdownit.
There is a PR for this: https://github.com/nuxt-community/modules/pull/323

When the PR is merged (or you build the markdownit with it) change the plugin code to

export default function plugin (md) {
 md.rendered.rules.link_open = (tokens, idx, options, env, self) => {
  // Logic for replacing the links is not important for this question
 }
}

Leave a comment