You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Preview/Source toggle for Markdown files in the session file viewer.
Detects .md/.markdown files and defaults to rendered preview mode.
Auto-switches to Source view when navigating to a comment.
Excludes binary files from the toggle.
Includes i18n translations for all 17 supported locales.
Based on work by @kimi-chen in anomalyco#13704.
Co-authored-by: kimi-chen <kimi-chen@users.noreply.github.com>
Co-Authored-By: Paperclip <noreply@paperclip.ing>
…nt bleed-through
The toolbar used bg-surface-base which resolves to rgba(0,0,0,0.031) — nearly
transparent. When scrolling, file contents were visible behind the sticky
toolbar. Switch to bg-background-base (#f8f8f8/#101010) which is fully opaque,
matching the pattern used by other sticky headers in the app.
Adds client-side rendering of mermaid diagrams in the markdown file viewer.
When viewing .md/.markdown files in preview mode, mermaid code blocks are
automatically rendered as SVG diagrams.
Closesanomalyco#14187
Why it might be related:
This PR appears to be addressing the same feature - adding Mermaid diagram visualization in markdown. It could be a previous attempt, an alternative implementation, or a related feature that should be checked for overlap with PR #23688.
I recommend checking if #21497 is already merged, closed, or if it's a duplicate that should be consolidated with the current PR.
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
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.
Issue for this PR
#13704
#16782
#22079
Closes#14187
Type of change
What does this PR do?
```mermaidcode blocks are automatically rendered as SVG diagramsHow did you verify your code works?
local test
Screenshots / recordings
Checklist
Thanks to
@kimi-chen
@southpolesteve
@alankyshum