-
Hi, RST does not support the combination of bold and italics, unlike markdown which supports it using the triple asterisk *** After reading this stack overflow answer I've attempted to implement a similar solution using Sphinx+rinohtype https://stackoverflow.com/a/22885876 To allow me to use this in my documents I have added the following to my stylesheet
I then built the following section of document
The paragraphs work fine and are styled with bold and italics, but the inline bolditalics does not. Here is the stylelog. You can see that the class information is not applied to the inline element.
So, I am a bit lost when it comes to this, it seems I can use the rst-class directive to pass on class information from the rst and then apply the style with rinohtype, but somewhere between the rst -> sphinx -> rinoh process I lose the class information for inline elements when using the role directive. Any information would be greatly appreciated as I intend to style other inline elements with classes. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I can't remember why the Using |
Beta Was this translation helpful? Give feedback.
-
Thank you! This solved my problem 👍 |
Beta Was this translation helpful? Give feedback.
I can't remember why the
SingleStyledText
andMixedStyledText
selectors don't work, but the more genericStyledText
selector should definitely work. Seehide.rts
(andhide.rst
) from the regression tests.Using
SingleStyledText
orMixedStyledText
should probably throw an error, since I don't think there are actual use cases for it.