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

Closed
RI
20d ago
+91-23

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.