Uh oh!
There was an error while loading. Please reload this page.
feat(app): add markdown preview with enhanced markdown support - #29684
feat(app): add markdown preview with enhanced markdown support#29684Ekaanth wants to merge 8 commits into
Conversation
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. |
Ekaanth
commented
May 28, 2026
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
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