lib/asciidoctor/stylesheets.rb in asciidoctor-1.5.4 vs lib/asciidoctor/stylesheets.rb in asciidoctor-1.5.5
- old
+ new
@@ -69,10 +69,11 @@
#
# returns the [String] Pygments stylesheet data
def pygments_stylesheet_data style = nil
if load_pygments
(@pygments_stylesheet_data ||= {})[style || DEFAULT_PYGMENTS_STYLE] ||=
- ::Pygments.css '.listingblock .pygments', :classprefix => 'tok-', :style => (style || DEFAULT_PYGMENTS_STYLE)
+ (::Pygments.css '.listingblock .pygments', :classprefix => 'tok-', :style => (style || DEFAULT_PYGMENTS_STYLE)).
+ sub('.listingblock .pygments {', '.listingblock .pygments, .listingblock .pygments code {')
else
'/* Pygments styles disabled. Pygments is not available. */'
end
end