summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-12-23 02:59:51 +0900
committerGitHub <noreply@github.com>2021-12-23 02:59:51 +0900
commit7d59c4060871b206e567c9ca55f4667e5bc44d8a (patch)
treee901a2ac29e497b62350887a62581aa74f96139d
parent40db5694faf8d74d34675a686960ca76d984042b (diff)
parenta87d0359c01972c8a3eb01b7ff887399626efae3 (diff)
downloadsphinx-git-7d59c4060871b206e567c9ca55f4667e5bc44d8a.tar.gz
Merge pull request #9990 from tk0miya/9961_nested_kbd_in_html_related_builders
Close #9961: html: Support nested <kbd> HTML elements in other HTML builders
-rw-r--r--CHANGES1
-rw-r--r--sphinx/builders/html/transforms.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index d34034f8c..f3b1ccb48 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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
diff --git a/sphinx/builders/html/transforms.py b/sphinx/builders/html/transforms.py
index cb9af5f28..338c87b7f 100644
--- a/sphinx/builders/html/transforms.py
+++ b/sphinx/builders/html/transforms.py
@@ -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'),