Repository navigation
Fix Mermaid diagram rendering in QuickLook.Plugin.MarkdownViewer - #1730
Merged
Merged
Conversation
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [Feature Request] Support Mermaid for QuickLook.Plugin.MarkdownViewer
Add Mermaid diagram support to QuickLook.Plugin.MarkdownViewer
Aug 1, 2025
Member
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Contributor
Author
I've identified and fixed the issue! The problem wasn't with the mermaid.min.js file itself, but with how the Mermaid code blocks were being processed. Root Cause: Fix Applied (commit f79422e):
Now when you use: ```mermaid
graph TD
A[Start] --> B[End] |
Copilot
AI
changed the title
Add Mermaid diagram support to QuickLook.Plugin.MarkdownViewer
Fix Mermaid diagram rendering in QuickLook.Plugin.MarkdownViewer
Aug 1, 2025
emako
marked this pull request as ready for review
August 1, 2025 18:09
ahocagil
pushed a commit
to ahocagil/UA-FastLook
that referenced
this pull request
Sep 9, 2026
* Implement Mermaid diagram support for MarkdownViewer Co-authored-by: emako <24737061+emako@users.noreply.github.com> * Replace the mermaid.min.js https://cdn.jsdelivr.net/npm/mermaid@11.4.1/dist/mermaid.min.js * Fix Mermaid diagram rendering by updating markdown-it highlight function Co-authored-by: emako <24737061+emako@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: emako <24737061+emako@users.noreply.github.com> Co-authored-by: ema <mccoy39082@163.com>
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.
This PR fixes a critical bug in the Mermaid diagram integration where diagrams were not rendering properly after the actual Mermaid library was added.
Problem
After replacing the placeholder
mermaid.min.jswith the actual Mermaid library, diagrams were not rendering - they appeared as plain text code blocks instead of visual diagrams.Root Cause
The markdown-it parser was treating ````mermaid
code blocks as regular syntax-highlighted code, converting them to