3

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>`__
vitaut
  • 49,672
  • 25
  • 199
  • 336

1 Answers1

0

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

FvD
  • 3,697
  • 1
  • 35
  • 53
  • you can -- see https://stackoverflow.com/questions/4743845/format-text-in-a-link-in-restructuredtext/4836544#4836544 – Jason S Feb 17 '20 at 16:29