Skip to content

Add inline code and quote shortcuts, matching GitHub's markdown editor#120

Open
riasvdv wants to merge 1 commit into
panphora:mainfrom
riasvdv:shortcuts
Open

Add inline code and quote shortcuts, matching GitHub's markdown editor#120
riasvdv wants to merge 1 commit into
panphora:mainfrom
riasvdv:shortcuts

Conversation

@riasvdv

@riasvdv riasvdv commented Jun 19, 2026

Copy link
Copy Markdown

Summary by cubic

Adds GitHub-style markdown shortcuts: Cmd/Ctrl+E for inline code and Cmd/Ctrl+Shift+. for quote. Updates docs, demo, and tests, with robust cross‑platform key matching.

  • New Features

    • Cmd/Ctrl+E toggles inline code.
    • Cmd/Ctrl+Shift+. toggles quote.
    • README and website updated to show the new shortcuts.
  • Refactors

    • Normalized key handling via getShortcutInfo/matchesKey for consistent event.key and event.code matching across platforms and shifted keys.
    • Added keyboard tests for inline code, quote, and shifted 7/8 list shortcuts.

Written for commit 18dbf22. Summary will update on new commits.

Review in cubic

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