sphinx-doc/sphinx

parsed-literal output

Open

#2167 aperta il 11 dic 2015

Vedi su GitHub
 (10 commenti) (2 reazioni) (0 assegnatari)Python (1985 fork)batch import
help wantedmarkup

Metriche repository

Star
 (5625 star)
Metriche merge PR
 (Merge medio 10g 11h) (11 PR mergiate in 30 g)

Descrizione

Hi,

I have realized that the html output of parsed-literal depends on whether links are included or not. For instance:

.. parsed-literal::

   public int64  size()

will generate a single line with highlighted code

but

.. parsed-literal::

   public :ref:`fusion.flatexpr`  eval()

will yield a single line but with not highlight. Note that the link is valid and it will work nicely.

My point is: there should be a consistent behaviour. Of course would be nice to have always highlight (or an option to have it).

Guida contributor