feat(app): add markdown preview with enhanced markdown support#29684
Open
Ekaanth wants to merge 5 commits into
Open
feat(app): add markdown preview with enhanced markdown support#29684Ekaanth wants to merge 5 commits into
Ekaanth wants to merge 5 commits into
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #22079: Reason: This PR appears to address the exact same feature — adding a markdown preview/source toggle for file tabs. Both PRs implement a toggle mechanism to switch between viewing markdown files in preview mode and raw source mode in the file viewer. Recommend checking PR #22079 to confirm if it's already merged, closed, or if the current PR (#29684) is intended as an updated implementation. |
Author
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.
Issue for this PR
Closes #
Type of change
What does this PR do?
Adds markdown preview mode with Code/Preview toggle tabs and Mermaid diagram rendering to the file viewer.
File viewer changes (
packages/app/src/pages/session/file-tabs.tsx):.md,.markdown,.mdx)<Markdown>componentMarkdown rendering changes (
packages/ui/src/components/markdown.tsx):```mermaidcode blocks from source beforemarked.parse()to prevent shiki from intercepting themmermaidand renders SVG diagrams directly into the containersecurityLevel: "strict"and dark themeMarked config (
packages/ui/src/context/marked.tsx):TokenimportHow did you verify your code works?
packages/uiandpackages/app.mdfile — Code/Preview tabs appearScreenshots / recordings
Screen.Recording.2026-05-28.at.15.42.03.mov
Screen.Recording.2026-05-28.at.15.41.19-1.mov
Checklist