Repository navigation
feat/markdown preview - #849
Merged
Merged
Conversation
Jinwoo-H
force-pushed
the
feat/markdown-preview
branch
from
April 26, 2026 02:16
6e0ef97 to
7bb3d35
Compare
- Use GithubSlugger for heading IDs to match rehype-slug output - Route #L10/#L10C5 line-target links to source editor instead of breaking - Memoize react-markdown components to prevent unnecessary re-renders - Remove unused worktreeId prop from MarkdownPreview - Fix toggle icon size (8px → 12px) to match surrounding UI - Add "Open Markdown Preview" to file explorer context menu - Clean up tab context menu item to prevent 2-line wrapping
Jinwoo-H
force-pushed
the
feat/markdown-preview
branch
from
April 26, 2026 02:22
7bb3d35 to
0b9cfd6
Compare
machamy
added a commit
to machamy/orca
that referenced
this pull request
Sep 25, 2026
…lt view The rich editor refuses raw HTML, prose generics and docs over 50k characters, and those dead-ended at "editable only in code mode". Upstream moved preview to a separate tab (stablyai#849) but kept the in-pane preview path in the edit and diff surfaces; put it back in the toggle for both, and open markdown in it by default. A setting picks Preview, Rich or Source; the per-file toggle wins, and diffs keep defaulting to Source. Also bumps to machamy.13 (with the Source Control extension filter already on main) and keeps agent briefs/ at the repo root out of app.asar. Co-Authored-By: Claude Opus 5.5 <[email protected]>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Jinwoo-H <[email protected]>
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.
Summary
.mdfiles instead of rendering preview inside the current editor tab.Cmd/Ctrl+Shift+V, and a shortcuts settings entry.closes #511
Screenshots
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildAI Review Report
Reviewed the main regression risks around preview-tab state, source-tab synchronization, save behavior, rename/move remapping, external file watch handling, diff behavior, and markdown link/path resolution.
The review flagged and this PR fixed several concrete issues:
Cross-platform compatibility was explicitly reviewed for the areas touched by this PR:
metaKeyon macOS andctrlKeyon Linux/Windows.⌘⇧Von macOS andCtrl+Shift+Velsewhere./and\\separators.Security Audit
Reviewed the user-controlled markdown rendering path and related file/link handling.
rehype-sanitizebefore trusted renderers run, reducing XSS risk from markdown content while still allowing supported preview features.rehype-raw,rehype-sanitize,remark-math,rehype-katex, andkatex; follow-up is standard dependency review/monitoring only.