Content: How do we configure markdown plugins?

Created on 5 Jun 2020  路  3Comments  路  Source: nuxt/content

How does one configure markdown plugins?

I want to tweak the behaviour of the autolink-headings plugin, but could not see how to do that in the docs.

question

All 3 comments

Hey @davestewart,

You can configure remark plugins using its name in camelCase, so for remark-autolink-headings:

{
  content: {
    markdown: {
      autolinkHeadings: {
        // https://github.com/remarkjs/remark-autolink-headings#options
      }
    }
  }
}

Here is the link to the documentation.

Thanks for the speedy help!

That's really tucked away 馃憥

I'd recommend making that WAY more obvious, perhaps its own section:

image

@davestewart A PR is actually ongoing that will support rehype plugins and change how to configure them. Stay tuned!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rednas83 picture Rednas83  路  3Comments

thely picture thely  路  4Comments

pxwee5 picture pxwee5  路  4Comments

emp1tsu picture emp1tsu  路  3Comments

giticon picture giticon  路  3Comments