Skip to content

editor: toggle inline formats off at closing marker#443

Open
junereycasuga wants to merge 1 commit into
ZenNotes:mainfrom
junereycasuga:fix/toggle-inlin-formats
Open

editor: toggle inline formats off at closing marker#443
junereycasuga wants to merge 1 commit into
ZenNotes:mainfrom
junereycasuga:fix/toggle-inlin-formats

Conversation

@junereycasuga

Copy link
Copy Markdown
Contributor

Summary

Fixes inline formatting shortcuts so pressing Mod+B / Mod+I a second time after typing formatted text exits the formatting span instead of inserting another nested markdown marker pair.

Changes

  • Detects empty-cursor formatting toggles immediately before a closing marker.
  • Moves the cursor after the closing marker to “turn off” the active format.
  • Removes an untouched empty marker pair when toggled again immediately.
  • Adds regression coverage for active-format exit behavior and empty-pair cleanup.

Before

Cap.2026-07-22.at.08.32.02.mp4

After

Cap.2026-07-22.at.08.30.35.mp4

@junereycasuga
junereycasuga requested a review from adibhanna as a code owner July 22, 2026 01:34
@junereycasuga
junereycasuga force-pushed the fix/toggle-inlin-formats branch from 75132d8 to 78c1813 Compare July 24, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant