Hi Bob,

On Monday, 16 December 2019 21:24:35 UTC+1, Bob DuCharme wrote:
>
> When I have a percent sign in literal text it italicizes the character 
> after it and they both are shown in a lighter color. For example: 
>
>
> :: 
>
>        here is text '%sample'
>
> In the HTML rendered by Sphinx, the 's' above will be italicized and the 
> '%s' show up in a lighter color. Backslash doesn't help. If I make it 
> '%%sample', there is no italicizing but both percent signs show up. 
>
> How can I make the "here is" line above show up as-is after doing a Sphinx 
> build? 
>
Perhaps not exactly what you want, but...

.. raw:: html
   <pre>here is text '%sample'</pre>
 
.. raw:: html     
   <div class="highlight-default notranslate"><div 
class="highlight"><pre>here is text '%sample'</pre></div></div


might be of some help?  (I just took the classes in you example's output 
and put them as raw html, without the nested spans that actually create the 
highlight)
HTH,
Stefano

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/05757e1c-a247-470f-a78d-e3d934f8a80c%40googlegroups.com.

Reply via email to