Skip to content

Commit

Permalink
Merge pull request #9990 from tk0miya/9961_nested_kbd_in_html_related…
Browse files Browse the repository at this point in the history
…_builders

Close #9961: html: Support nested <kbd> HTML elements in other HTML builders
  • Loading branch information
tk0miya committed Dec 22, 2021
2 parents 40db569 + a87d035 commit 7d59c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -22,6 +22,7 @@ Features added
this behavior with the ``--respect-module-all`` switch.
* #9800: extlinks: Emit warning if a hardcoded link is replaceable
by an extlink, suggesting a replacement.
* #9961: html: Support nested <kbd> HTML elements in other HTML builders
* #9815: html theme: Wrap sidebar components in div to allow customizing their
layout via CSS
* #9899: py domain: Allows to specify cross-reference specifier (``.`` and
Expand Down
2 changes: 1 addition & 1 deletion sphinx/builders/html/transforms.py
Expand Up @@ -36,7 +36,7 @@ class KeyboardTransform(SphinxPostTransform):
x
"""
default_priority = 400
builders = ('html',)
formats = ('html',)
pattern = re.compile(r'(?<=.)(-|\+|\^|\s+)(?=.)')
multiwords_keys = (('caps', 'lock'),
('page' 'down'),
Expand Down

0 comments on commit 7d59c40

Please sign in to comment.