Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Part of a word bold in reStructuredText

How can I make a part of a word bold in reStructuredText?

Here is an example of what I need: ".rst stands for restructured text."

like image 375
v_2e Avatar asked Oct 07 '12 18:10

v_2e


1 Answers

I was surprised that you could not simply write

.rst stands for **r**e**s**tructured **t**ext.

but the reStructuredText specification indeed states that inline markup must be followed by white-space or one of - . , : ; ! ? \ / ' " ) ] } or >, so the above string of reStructuredText is not valid. However, only a minor change is required to get valid character markup with backslash escapes. Changing the above to

.rst stands for **r**\ e\ **s**\ tructured **t**\ ext.

works fine. To see this in action try the online reST to HTML converter.

like image 81
Chris Avatar answered Nov 17 '22 07:11

Chris