Skip to content

Allow a way to use remark plugins #39

Description

@hunterliu1003

Is your feature request related to a problem? Please describe.

I would like to use remark plugins in markdown content, for example:

For instance, @nuxtjs/markdownit can config in nuxt.config.js:

markdownit: {
  use: [
    'markdown-it-div',
    'markdown-it-attrs'
  ]
}

and Vuepress can config in .vuepress/config.js:

markdown: {
  plugins: {
    'markdown-it-bar': {
      // provide options here
    }
  }
}

Describe the solution you'd like

In short: a way to use remark plugins

export default {
  content: {
    use: [
      [
        'remark-attr', { 
          // provide options here 
        }
      ],
      // else plugins
    ]
  }
}

Activity

  1. benjamincanac commented on May 25, 2020

    @benjamincanac
    Member

    Hey @hunterliu1003,

    You can now use plugins in v1.2.0.

    Here is the link to the documentation: https://content.nuxtjs.org/configuration#markdown

    Let me know if this works for you!

  2. adamdehaven commented on Feb 27, 2021

    @adamdehaven
    Contributor

    @benjamincanac can you show an example of how to actually use a remark plugin (e.g. remark-directive)? I've read through the documentation several times but can't seem to get a remark plugin up and working properly. The documentation could really use a working example.

  3. added a commit that references this issue on Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions