Skip to content

Add Mermaid Support in Fenced Code Blocks - #169

Open
Sam Clark (28pins) wants to merge 5 commits into
microsoft:mainfrom
28pins:28pins-mermaid-feature
Open

Add Mermaid Support in Fenced Code Blocks#169
Sam Clark (28pins) wants to merge 5 commits into
microsoft:mainfrom
28pins:28pins-mermaid-feature

Conversation

@28pins

Copy link
Copy Markdown

Summary

  • Added mermaid support using beautiful-mermaid-swift
  • For compatibility, rendering can be disabled using MermaidConfig.disabled
  • MermaidConfig offers theme customization options (inherits directly from package, VS Code based)

Validation

Add tests, check demos, stress test kitchen sink demo

OSS readiness

  • No secrets, internal URLs, private identifiers, or product-only service names were added.
  • Public docs, fixtures, or notices were updated if behavior or dependencies changed.
  • Third-party dependency changes (adds, removes, version bumps) are intentional and reviewed.
  • Streaming/incomplete markdown behavior remains covered by fixtures or tests.

@28pins
Sam Clark (28pins) requested review from a team and a lite review from Copilot August 15, 2026 22:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 16 changed files in this pull request and generated 3 comments.

Comment thread Sources/MarkdownText/UI/MermaidStreamDebouncer.swift
Comment thread Sources/MarkdownText/UI/MermaidStreamDebouncer.swift
Comment thread Sources/MarkdownText/Models/MarkdownRenderConfig+Builders.swift
@28pins

Copy link
Copy Markdown
Author

Copilot Fix the code for all comments in this review thread.

When a review comment includes a suggested change, apply the suggestion exactly.

Do not make changes beyond what is described in the linked review thread.

Sam Clark (28pins) and others added 3 commits September 1, 2026 09:07
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@28pins Sam Clark (28pins) changed the title 28pins mermaid feature Add Mermaid Support in Fenced Code Blocks Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants