Skip to content

v0.4.0

Choose a tag to compare

@pingfan-hu pingfan-hu released this 12 Aug 01:56
· 12 commits to main since this release

What's New in v0.4.0

New Features

  • Formatting hotkeys: press ⌘B / ⌘I to toggle bold and italic. Toggling is smart — it works with the cursor anywhere inside styled text, with or without the surrounding markers selected, and through nested styles like ***bold italic*** (⌘I on it removes only the italic layer).
  • Edge-click reveal: clicking the left or right edge of rendered styled text places the cursor before/after the markdown source and reveals it, Obsidian-style. A cursor touching the edge of a styled span reveals its source; moving away re-renders it.
  • Obsidian-style selection: dragging across rendered styled text includes the markdown markers in the selection, and the source reveals shortly after the mouse settles — the layout stays stable during clicks, double-clicks, and drags. Double-click selects exactly the group under the cursor (text or markers), like plain text.

Bug Fixes

  • Nested styles now render correctly: ***bold italic*** shows as bold and italic with all markers hidden (same fix applies to styles nested inside strikethrough).
  • Fixed invisible text selection on styled text, most visible in Preview mode.
  • ⌘B/⌘I are now robust at the edges of styled text: with the cursor anywhere in a starred run (markers included), they toggle the whole construct, keep both sides balanced with at most 3 asterisks, and repair malformed runs first — rapid presses can no longer flood asterisks.

🤖 Generated with Claude Code