Skip to content

Commit 0d65890

Browse files
authored
feat: add missing kbd HTML element (#81)
* feat: add missing kbd HTML element, closes #80 * make kbd an inline element, refs #80
1 parent d082444 commit 0d65890

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

htmy/html.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,18 @@ class i(Tag):
709709
tag_config = _DefaultTagConfig.inline_children
710710

711711

712+
class kbd(Tag):
713+
"""
714+
`<kbd>` element.
715+
716+
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd.
717+
"""
718+
719+
__slots__ = ()
720+
721+
tag_config = _DefaultTagConfig.inline_children
722+
723+
712724
class picture(Tag):
713725
"""
714726
`<picture>` element.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "htmy"
3-
version = "0.8.1"
3+
version = "0.8.2"
44
description = "Async, pure-Python server-side rendering engine."
55
authors = ["Peter Volf <do.volfp@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)