Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 513
Ying Xiong Avatar asked Dec 05 '25 10:12

Ying Xiong


1 Answers

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

like image 170
number5 Avatar answered Dec 07 '25 15:12

number5



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!