mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix unwanted styling of C domain references (because of a namespace clash with Pygments styles).
This commit is contained in:
parent
92142bbdb6
commit
5b09e2b41a
3
CHANGES
3
CHANGES
@ -1,6 +1,9 @@
|
|||||||
Release 1.0.2 (in development)
|
Release 1.0.2 (in development)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
* Fix unwanted styling of C domain references (because of a
|
||||||
|
namespace clash with Pygments styles).
|
||||||
|
|
||||||
* Allow references to PEPs and RFCs with explicit anchors.
|
* Allow references to PEPs and RFCs with explicit anchors.
|
||||||
|
|
||||||
* #471: Fix LaTeX references to figures.
|
* #471: Fix LaTeX references to figures.
|
||||||
|
@ -240,7 +240,7 @@ class PygmentsBridge(object):
|
|||||||
# no HTML styles needed
|
# no HTML styles needed
|
||||||
return ''
|
return ''
|
||||||
if self.dest == 'html':
|
if self.dest == 'html':
|
||||||
return self.fmter[0].get_style_defs()
|
return self.fmter[0].get_style_defs('.highlight')
|
||||||
else:
|
else:
|
||||||
styledefs = self.fmter[0].get_style_defs()
|
styledefs = self.fmter[0].get_style_defs()
|
||||||
# workaround for Pygments < 0.12
|
# workaround for Pygments < 0.12
|
||||||
|
Loading…
Reference in New Issue
Block a user