Skip to content

Add <kbd> element support in markdown and CSS#71

Merged
mlissner merged 2 commits intomainfrom
add-kbd-element-support-20260323
Mar 23, 2026
Merged

Add <kbd> element support in markdown and CSS#71
mlissner merged 2 commits intomainfrom
add-kbd-element-support-20260323

Conversation

@mlissner
Copy link
Copy Markdown
Member

@mlissner mlissner commented Mar 23, 2026

Fixes

N/A — new feature

Summary

  • Allow <kbd> HTML tags through the markdown sanitizer so authors can use keyboard shortcut notation
  • Style <kbd> with a keycap appearance (monospace font, border, subtle bottom shadow) with dark mode support
  • Add tests for basic and nested <kbd> rendering

Deployment

This PR should:

  • skip-deploy (skips everything below)
    • skip-web-deploy
    • skip-daemon-deploy

mlissner and others added 2 commits March 23, 2026 09:38
Allow <kbd> tags through HTML sanitization and style them with a
keycap appearance (border, subtle shadow, monospace font) including
dark mode support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mlissner mlissner marked this pull request as ready for review March 23, 2026 16:39
@mlissner mlissner enabled auto-merge March 23, 2026 16:40
@mlissner mlissner merged commit 383758a into main Mar 23, 2026
8 checks passed
@mlissner mlissner deleted the add-kbd-element-support-20260323 branch March 23, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant