We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to enable syntax coloring in this example?
I installed rehype-highlight and followed https://www.contentlayer.dev/docs/reference/source-files/make-source-a5ba4922#mdx to get this:
rehype-highlight
export default makeSource({ contentDirPath: "./content", documentTypes: [Post, Page], mdx: { rehypePlugins: [highlight], } })
This has not worked for me so there must be more involved. Any idea about what that might be?
The text was updated successfully, but these errors were encountered:
This pull request solves the problem:
#1
Someone should probably merge that . . .
Sorry, something went wrong.
Alternatively, I really like RehypePrettyCode Great support for line highlighting and other thing deffo worth a look
@cpmooney Rehype Pretty Code seems to be working for me without an issue.
No branches or pull requests
Is it possible to enable syntax coloring in this example?
I installed
rehype-highlight
and followed https://www.contentlayer.dev/docs/reference/source-files/make-source-a5ba4922#mdx to get this:This has not worked for me so there must be more involved. Any idea about what that might be?
The text was updated successfully, but these errors were encountered: