recommonmark/tests
Gibson Fahnestock ec0ada952d
Remove URL quoting from refs before passing to Sphinx
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
2019-05-23 16:01:37 +02:00
..
sphinx_code_block Add tests for checking that pygments will still highlight the code. This requires a newer version sphinx as well. 2016-06-10 21:08:31 -05:00
sphinx_custom_md add a last line 2018-12-31 19:43:40 +09:00
sphinx_generic Port in pending_xref node changes to references 2017-03-02 20:04:30 -08:00
sphinx_indented_code Add tests for checking that pygments will still highlight the code. This requires a newer version sphinx as well. 2016-06-10 21:08:31 -05:00
sphinx_nested_header_block Add test for header nested in a block 2016-10-27 01:17:06 -05:00
sphinx_xref Remove URL quoting from refs before passing to Sphinx 2019-05-23 16:01:37 +02:00
__init__.py Add initial stab at testing & Travis/Tox integration 2015-10-19 11:41:10 -07:00
test_basic.py Add visit_html_block 2018-10-08 20:17:02 +01:00
test_sphinx.py add a last line 2018-12-31 19:43:40 +09:00