Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bold code in rst

How can I get code (monospace) text that is bold in rst (I'm using Sphinx)? Anything in :: seems to be rendered literally, as with ``, so ``**bold**`` doesn't work.

like image 889
asmeurer Avatar asked Oct 14 '14 17:10

asmeurer


1 Answers

In general, nested inline markup is not possible in reStructuredText. There are more or less ugly workarounds, such as using raw HTML. Like this:

.. raw:: html

   <div>Some stuff <pre>some <b>bold</b> text</pre>...</div>
like image 61
mzjn Avatar answered Sep 21 '22 08:09

mzjn