I was redirected here from https://github.com/sphinx-doc/sphinx/issues/4350
Given the following reST code:
http://example.com/a_-b
converting it to html results in a warning and the URL isn't converted to a link. The docs state that hyperlinks can't end with a "_", but this isn't the case here.
added note:
does work ok, hence docs is fine for this "linkblock". But when handling Sphinx issue I did not find immediately docs for "inline" URI, not inside a linkblock.
ah, ok, docs is here and it says
but it is not clear to me if that says that escaping is necessary if URI contains a non-letter after the underscore (as is possibly the case as reported here).
It seemed weird to me that "a_b" and "a-b" works, but "a_-b" doesn't.
Yes, and this is regular and documented behaviour:
a_
is link syntax (trailing backslash)Last edit: Günter Milde 2017-12-29
Ah, I see. Thanks!