[desktop] Fix inline markdown input rules triggering mid-paragraph#21
Merged
usamaasfar merged 2 commits intoeditor-improvementsfrom Feb 21, 2026
Merged
[desktop] Fix inline markdown input rules triggering mid-paragraph#21usamaasfar merged 2 commits intoeditor-improvementsfrom
usamaasfar merged 2 commits intoeditor-improvementsfrom
Conversation
Merged
usamaasfar
added a commit
that referenced
this pull request
Feb 21, 2026
* Improve editor writing experience - Add inline mark input rules: _italic_, *bold*, ~strikethrough~, `code` - Add Cmd+Enter as hard break (alongside Shift+Enter) - Add underline mark with Cmd+U shortcut - Add --- input rule to insert horizontal rule - Restore caretPlugin (pulled from main) - Fade-in animation on editor mount - Remove first-heading top margin - Tighten typography: line-height 1.75, paragraph spacing 0.5em Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Disable autocomplete and spellcheck on rename input Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Hide title by default, reveal on hover and file switch Title is hidden by default and fades in (400ms) on topbar hover. Untitled stays always visible as a nudge to rename. Flashes visible for 1.2s on file switch via useTitleVisibility hook. Stays visible while renaming. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Delete .npmrc * [desktop] Fix inline markdown input rules triggering mid-paragraph (#21) * Initial plan * Fix inline markdown input rule anchors --------- Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com> * Refine command palette styling for a more minimal look Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Codex <242516109+Codex@users.noreply.github.com>
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.
Inline markdown shortcuts (
*bold*,_italic_, etc.) only fired at line ends due to end-of-string regex anchors, breaking normal mid-paragraph typing.$end anchors with whitespace/end lookaheads so marks apply anywhere in a line while still requiring a boundary.Example:
Greptile Summary
Fixed inline markdown shortcuts to trigger mid-paragraph instead of only at line ends by replacing
$end-of-string regex anchors with(?=\s|$)lookaheads.Confidence Score: 5/5
Important Files Changed
Last reviewed commit: ac678f7