mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Check complete ancestry of text nodes for smartquotes eligibility.
Fixes sphinx-doc/sphinx#9564.
This commit is contained in:
@@ -2,3 +2,7 @@ test-smartquotes
|
||||
================
|
||||
|
||||
-- "Sphinx" is a tool that makes it easy ...
|
||||
|
||||
.. toctree::
|
||||
|
||||
literals
|
||||
|
||||
12
tests/roots/test-smartquotes/literals.rst
Normal file
12
tests/roots/test-smartquotes/literals.rst
Normal 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'``
|
||||
Reference in New Issue
Block a user