diff --git a/CHANGES b/CHANGES index ad51ffeff..0e06938df 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ 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. * #471: Fix LaTeX references to figures. diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index f5ea859cb..0dcbc0219 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -240,7 +240,7 @@ class PygmentsBridge(object): # no HTML styles needed return '' if self.dest == 'html': - return self.fmter[0].get_style_defs() + return self.fmter[0].get_style_defs('.highlight') else: styledefs = self.fmter[0].get_style_defs() # workaround for Pygments < 0.12