Repository navigation
Description
Pre-submit Checks
- I have searched Warp feature requests and there are no duplicates
- I have searched Warp docs and my feature is not there
Describe the solution you'd like?
Warp's Markdown Viewer should render <kbd> tags with a small, monospace, keycap-styled badge — the standard treatment GitHub and most other renderers give it for documenting keyboard shortcuts.
Expected behavior: each <kbd>…</kbd> renders as a small keycap-styled badge (typically monospace font, subtle border/background, slightly raised appearance).
Is your feature request related to a problem? Please describe.
<kbd> is the conventional way to document keyboard shortcuts in Markdown docs (there's no markdown-native equivalent), and it feels especially on-brand for a terminal app's own docs and READMEs to render it properly.
Concretely, today in Warp's Markdown Viewer (verified on this build):
The raw <kbd> tags and their shortcut text render as plain literal text, with no keycap styling.
Additional context
Test case:
# `<kbd>`
Should render: a small, monospace, keycap-styled badge for a keyboard shortcut. Currently: expect the raw tags and shortcut text to render as plain literal text, with no keycap styling.
Press <kbd>Cmd</kbd>+<kbd>K</kbd> to open the command palette.Code pointers. As far as I can tell, <kbd> has no functional handling anywhere in the workspace — the tag doesn't appear in markdown_parser.rs, and it's absent from html_parser.rs's PHRASING_ELEMENT_TAGS/TOP_LEVEL_ELEMENT_TAGS_TO_SKIP lists (the ~80 <kbd> string matches elsewhere in the codebase, in crates/warpui_core/src/platform/keyboard.rs, are unrelated doc-comment prose about physical keyboard handling, not markdown rendering).
Related: this splits out one tag from #13652 (bulk raw-HTML-subset request). Sibling issues from the same split: #13721 (<img> sizing), #13725 (anchor links), #13726 (raw HTML tables), #10259 (<details>/<summary> — pre-existing request), #13732 (<br>), #13734 (<sub>/<sup>), #13735 (align on <p>/<div>), #13736 (<picture>/<source>)
Operating system (OS)
macOS
How important is this feature to you?
1 (Not too important)
Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1
No response
Activity
warp-for-oss commentedon Jul 14, 2026
@fbartho
Here's what I found while triaging this issue:
The report matches the current Markdown Viewer behavior:
<kbd>is not currently rendered as a supported inline HTML/keycap element. This looks like a focused Markdown rendering enhancement rather than an OS-specific issue.Maintainer details
I concluded that request to render Markdown Viewer
<kbd>HTML tags as styled keycap badges instead of literal text..Triage summary
This is an actionable Markdown Viewer enhancement request. The desired behavior is for inline
<kbd>…</kbd>HTML in rendered Markdown to display as keycap-style keyboard shortcut badges rather than as literal tag text.Evidence
Press <kbd>Cmd</kbd>+<kbd>K</kbd> to open the command palette.app/src/notebooks/file/mod.rsintoRichTextEditorView::reset_with_markdown, then throughcrates/editor/src/content/buffer.rsintoparse_markdownorparse_markdown_with_gfm_tables.crates/markdown_parser/src/markdown_parser.rsdoes not have raw HTML inline tag parsing, so<kbd>is currently treated as literal text.crates/markdown_parser/src/lib.rsandcrates/editor/src/content/text.rshas styles for inline code, links, emphasis, underline, and strikethrough, but not a distinct keycap/kbd style.crates/markdown_parser/src/html_parser.rsis primarily used for pasted HTML and has a limited phrasing-element allowlist; it also does not includekbd.Likely implementation area
A fix likely needs both parser support for recognizing
<kbd>as supported inline HTML in Markdown and rendering/model support for a keycap-style inline fragment. If product/design prefers reusing existing inline-code styling as an approximation, that could keep the implementation narrower, but it would not provide the distinct keycap treatment requested.Duplicate check
I found related Markdown Viewer raw-HTML issues, including recently closed #13652 and sibling open issues for other tags, but fewer than two existing issues appear to be likely duplicates of this specific
<kbd>/keycap request.This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
warp-for-oss commentedon Jul 17, 2026
This issue has been labeled
ready-to-implementand is open for contributions involving code changes. If you'd like to tackle it, feel free to open a pull request against this issue. You can also comment@oz-agenton this issue to have the bot draft an implementation PR automatically.Differentiate the kbd keycap from inline code chips (warpdotdev#13733)
Add a raised-key bottom edge to the kbd keycap (warpdotdev#13733)
Pin kbd serialization to authored text, not key glyphs (warpdotdev#13733
Flat-collapse nested <kbd> instead of leaking tags (warpdotdev#13733)
fix(editor): nest kbd inside underline on Markdown export (warpdotdev…
fix(markdown_parser): preserve authored casing of malformed kbd tags (w…
test(markdown_parser): pin double-open kbd stays literal (warpdotdev#…
style(warpui_core): collapse nested if in keycap bottom-edge paint