diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-12-19 12:41:04 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-12-19 12:41:04 +0900 |
| commit | a87d0359c01972c8a3eb01b7ff887399626efae3 (patch) | |
| tree | 93bfa2c1d71863f236e69775d798a67431fef948 | |
| parent | 8d0fd9e74a6d44ca1a518225d9be030d91917c9b (diff) | |
| download | sphinx-git-a87d0359c01972c8a3eb01b7ff887399626efae3.tar.gz | |
Close #9961: html: Support nested <kbd> HTML elements in other HTML builders
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | sphinx/builders/html/transforms.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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'), |
