Pergunta

How can I make verbatim text inside a link in Restructured Text?

Here's what I'm trying to achieve:

example

I tried the following

```example`` <http://example.com>`__
` ``example`` <http://example.com>`__

but both cases are rendered as

` example <http://example.com>`__
Foi útil?

Solução

As far as I know and can find in the documentation you simply can't do this.

The same goes for trying to make a link bold or italic (which is what I was looking for).

Apparently it is possible (see the comment from @jJason S) below pointing to Format text in a link in reStructuredText

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top