Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot remove default plugins #377

Closed
smesterheide opened this issue Aug 12, 2020 · 3 comments · Fixed by #408
Closed

Cannot remove default plugins #377

smesterheide opened this issue Aug 12, 2020 · 3 comments · Fixed by #408
Labels
bug Something isn't working

Comments

@smesterheide
Copy link

Version

@nuxt/content: v1.4.0, v1.6.0

Steps to reproduce

export default {
  content: {
    markdown: {
      remarkPlugins: (plugins) => {
        const denyList = ['remark-autolink-headings']
        return plugins.filter((plugin) => !denyList.includes(plugin))
      },
    },
  },
}

What is Expected?

remark-autolink-headings is not loaded

What is actually happening?

mergeConfig works as intended, but the default plugins get concated to the filtered list by nuxt-contrib/defu as documented.

@smesterheide smesterheide added the bug Something isn't working label Aug 12, 2020
@benjamincanac
Copy link
Member

@sambrezo A new v1.7.0 release has been published which now uses defu.arrayFn, this should fix your issue.

Feel free to reopen if it's still there after upgrading.

@romain130492
Copy link

I believe header should not by default be anchor link!

@alexanderhorner
Copy link

Yea, or at least give us an easy option to disable it. Or at the very least, mention it in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants