Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables Mermaid diagram rendering in the Fumadocs MDX pipeline (Issue #141) by wiring the Mermaid remark plugin and providing a client-side <Mermaid /> component to render generated diagrams.
Changes:
- Add a new
src/components/Mermaid.tsxclient component that dynamically loads Mermaid and renders SVG output. - Enable Mermaid parsing in MDX via
remarkMdxMermaidinsource.config.ts. - Add required dependencies (
mermaid,next-themes) and expose theMermaidcomponent viamdx-components.tsx.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/Mermaid.tsx | Introduces the Mermaid renderer component (dynamic import + SVG injection). |
| source.config.ts | Adds remarkMdxMermaid to MDX remark plugins. |
| mdx-components.tsx | Registers Mermaid as an available MDX component. |
| package.json | Adds Mermaid + next-themes dependencies. |
| package-lock.json | Locks new transitive dependencies pulled in by Mermaid. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
GitLab Pipeline ActionGeneral informationLink to pipeline: https://gitlab.com/code0-tech/development/telescopium/-/pipelines/2458827755 Status: Passed Job summariesbuildDocumentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/13960760703/artifacts/out/index.html |
nicosammito
approved these changes
Apr 15, 2026
Taucher2003
reviewed
Apr 15, 2026
Taucher2003
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #141