Repository navigation
feat(workbench): preview Markdown in drafts and user messages - #6951
Merged
Merged
Conversation
Render draft Markdown over the original editor coordinates. Reveal the active syntax for edits, and keep the Markdown source for submission and copying. Generated-by: Codex
2 of 6 tasks
Colafornia
added a commit
that referenced
this pull request
Nov 20, 2026
#6951 split SkillMessage into markdown, token and plain renders and dropped the userSelect: 'text' the shared text carried. A markdown user message is still selectable through MarkdownBody's selectable view, but a message without Markdown syntax renders as a bare Text that is selectable neither by itself nor as part of a selection area, so dragging over it selects nothing. Restore userSelect: 'text' on the plain branch. Generated-by: Maka
4 of 6 tasks
Astro-Han
added a commit
that referenced
this pull request
Nov 22, 2026
…7117) Keep active and incomplete Markdown syntax visible in the composer and Markdown file editor while preserving #6951's preview design: - Check closed caret bounds (`owner.start <= pos && pos <= owner.end`) against `selection().head()` for syntax and Mermaid diagram reveal, keeping active markers visible at trailing carets without expanding the whole document on `Cmd+A`, and removing the `+ 1` workaround in `list_marker`. - Only conceal fenced code block delimiters and register Mermaid diagrams when both fences satisfy CommonMark's 0..=3 leading-space rule, a matching closing fence exists, and parsed `Code.value` has non-empty content. - Only conceal blockquote `>` prefixes on lines with non-empty content after the quote markers. Refs #6951 Generated-by: Antigravity (Gemini)
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
Verification
AI use
Codex implemented the preview, rendering and tests.
Checklist
Does this PR entail a change in behavior?