Check complete ancestry of text nodes for smartquotes eligibility.

Fixes sphinx-doc/sphinx#9564.
This commit is contained in:
Justin Turner Arthur
2021-08-20 03:38:30 -05:00
parent b174b77a14
commit adcda091d9
5 changed files with 46 additions and 7 deletions

View File

@@ -2,3 +2,7 @@ test-smartquotes
================
-- "Sphinx" is a tool that makes it easy ...
.. toctree::
literals

View File

@@ -0,0 +1,12 @@
literals
========
.. role:: python(code)
:language: python
.. default-role:: python
Standard :code:`code role with 'quotes'`
This is a Python :python:`{'code': 'role', 'with': 'quotes'}`.
This is a ``literal with 'quotes'``