mirror of
https://github.com/vale981/recommonmark
synced 2025-03-05 10:01:39 -05:00
![]() Sphinx allows refs with spaces etc, and in fact autogenerates them with the command [`autosectionlabel`][]. So if you put a: ```markdown [Link 1](<some ref>) [Link 2](<https://foo.com/bar baz>) ``` Then the links will be `some%20ref` and `https://foo.com/bar%20baz`. We want to keep the URL quoting for external references, but if we're passing it as `:any:` to Sphinx we need to unquote so Sphinx can find the correct reference, the `<some ref>` should map to: ```rst :ref:`some ref` ``` [`autosectionlabel`](https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html) Fixes: https://github.com/rtfd/recommonmark/issues/155 |
||
---|---|---|
.. | ||
sphinx_code_block | ||
sphinx_custom_md | ||
sphinx_generic | ||
sphinx_indented_code | ||
sphinx_nested_header_block | ||
sphinx_xref | ||
__init__.py | ||
test_basic.py | ||
test_sphinx.py |