Skip to content

Conversation

@xettri
Copy link

@xettri xettri commented Feb 10, 2026

Example

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything or linked relevant results below
  • I made sure the docs are up to date
  • I included tests (or that’s not needed)

Description of changes

TODO

@github-actions github-actions bot added the 👋 phase/new Post is being triaged automatically label Feb 10, 2026
@github-actions

This comment has been minimized.

@xettri
Copy link
Author

xettri commented Feb 10, 2026

I checked this, but it doesn’t appear to be supported natively by react-markdown. If there’s any workaround available in react-markdown, it would be appreciated.

@remcohaszing
Copy link
Member

remcohaszing commented Feb 10, 2026

It’s a deliberate choice to not support such features out of the box. You can use rehype-mermaid if you want to render mermaid code blocks as diagrams.

@github-actions

This comment has been minimized.

@remcohaszing remcohaszing added 👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on and removed 👋 phase/new Post is being triaged automatically labels Feb 10, 2026
@github-actions
Copy link

github-actions bot commented Feb 10, 2026

Hi team! Could you describe why this has been marked as external?

Thanks,
— bb

@ChristianMurphy
Copy link
Member

ChristianMurphy commented Feb 10, 2026

Welcome @xettri 👋
And thanks for sharing.

This doesn't align with react-markdown's design.
Non-standard and semi-standard markdown (like mermaid on code blocks) are handled through plugins (more on that here https://unifiedjs.com/learn/)
This keeps core small and focused, and allows a lot of flexibility.

There is an existing plugin that adds mermaid support which can be used with react-markdown https://github.com/remcohaszing/rehype-mermaid
I'd recommend using that, or if you can't share your experience in the rehype-mermaid issue tracker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on

Development

Successfully merging this pull request may close these issues.

3 participants