Question

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>`__
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top