Skip to content

How to add remark and rehype plugins #242

Open

Description

I've been trying to add the plugins "remark-math" and "rehype-mathjax" to the MDC configuration but it doesn't work and the "docs" are not clear about that.

It works with the @nuxt/content module, but I need it to work with the MDC module because my markdown is coming from a database, not from the content directory.

What I tried in my nuxt.config.ts file:

mdc: {
  remarkPlugins: {
	remarkMath: {
		src: 'remark-math',
	},
},
rehypePlugins: {
	rehypeMathjax: {
		src: 'rehype-mathjax',
	},
  },
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions