We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
samp
1 parent f4eea66 commit faa33a5Copy full SHA for faa33a5
doc/usage/restructuredtext/roles.rst
@@ -240,7 +240,10 @@ different style:
240
:rst:role:`code` role instead.
241
242
.. versionchanged:: 1.8
243
- Allowed to escape curly braces with backslash
+ Allowed to escape curly braces with double backslash. For example, in
244
+ ``:samp:`print(f"answer=\\{1+{variable}*2\\}")```, the part ``variable``
245
+ would be emphasized and the escaped curly braces would be displayed:
246
+ :samp:`print(f"answer=\\{1+{variable}*2\\}")`
247
248
There is also an :rst:role:`index` role to generate index entries.
249
0 commit comments