Search code examples
python-sphinxrestructuredtextdocutils

Sphinx hyperlink: non-whitespace before opening backtick


My hyperlinks aren't detected if there is a '/' char or a letter (eg 'V') immediately before the opening backtick.

Is there a workaround for this which doesn't introduce whitespace?


Solution

  • Escape a space character between the non-whitespace character and the opening backtick, like so:

    v\ `Python <https://www.python.org>`_
    

    Will render as:

    <p>v<a class="reference external" href="https://www.python.org">Python</a></p>