Skip to content

Code highlighting #727

Answered by LekoArts
richban asked this question in Questions
Nov 6, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can set mdx: false as an option and then use your own instance of gatsby-plugin-mdx where you can define that remark plugin. You'd probably also need to shadow the gatsby-plugin-theme-ui/components.js file to not convert <pre> tags to components with the <Code /> component.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@richban
Comment options

@LekoArts
Comment options

Answer selected by LekoArts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants