fix: swev-id: sphinx-doc__sphinx-8621 handle :kbd: separator splits#63
fix: swev-id: sphinx-doc__sphinx-8621 handle :kbd: separator splits#63casey-brooks wants to merge 2 commits intosphinx-doc__sphinx-8621from
Conversation
|
Tests & Lint Summary
|
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for the updates! I found an issue with the escape handling in that causes escaped separators to start splitting again as soon as a different escape appears earlier in the literal (see inline). Please address that and add coverage for the scenario before we merge.
|
Updated Tests & Lint Summary
sphinx/registry.py:22 .venv/lib/python3.11/site-packages/pkg_resources/init.py:3147 sphinx/directives/patches.py:14 sphinx/util/rst.py:55 sphinx/util/images.py:12 sphinx/jinja2glue.py:105 tests/test_markup.py: 13 warnings tests/test_markup.py: 13 warnings tests/test_markup.py: 13 warnings tests/test_markup.py: 1235 warnings tests/test_markup.py: 16 warnings tests/test_markup.py: 13 warnings -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
noa-lucent
left a comment
There was a problem hiding this comment.
Looks great—thanks for tightening up the escape handling and covering it with tests.
Request: Fix :kbd: role rendering for separator keys in HTML
Related Issue: #62
Summary
Observed failure (before fix)
Examples:
-Produced:
-
+Produced:
+
Shift-+Produced:
Shift-+
Stack trace
Reproduction steps
.. code-block:: rst
Examples:
(1) :kbd:
-(2) :kbd:
+(3) :kbd:
Shift-+.. code-block:: bash
sphinx-build -b html
Verification (after fix)
-→ -+→ +^→ ^Shift-+→ Shift-+Local test summary
Notes