Ying Xiong
Ying Xiong

Reputation: 4928

reStructuredText: backquote text immediate followed by other letters

I am using Sphinx with reStructuredText. I can use backquotes to create an inline literal, say

This is an ``object``

=> This is an object.

However, if there is an letter immediately follows the inline literal, the back-quoted text is not rendered as inline literal

They are ``object``s.

=> They are ``object``s.

How can I get the following desired rendering?

=> They are objects.

Upvotes: 3

Views: 287

Answers (1)

number5
number5

Reputation: 16443

In your case, you need to escape the s, e.g.

They are ``object``\s.

Result will be

They are objects.

You can try it in this online RST editor

Upvotes: 5

Related Questions