lib/asciidoctor/syntax_highlighter/pygments.rb in asciidoctor-2.0.10 vs lib/asciidoctor/syntax_highlighter/pygments.rb in asciidoctor-2.0.11
- old
+ new
@@ -3,12 +3,11 @@
class SyntaxHighlighter::PygmentsAdapter < SyntaxHighlighter::Base
register_for 'pygments'
def initialize *args
super
- @requires_stylesheet = nil
- @style = nil
+ @requires_stylesheet = @style = nil
end
def highlight?
library_available?
end
@@ -51,10 +50,10 @@
end
super
end
def docinfo? location
- @requires_stylesheet && location == :footer
+ @requires_stylesheet && location == :head
end
def docinfo location, doc, opts
if opts[:linkcss]
%(<link rel="stylesheet" href="#{doc.normalize_web_path (stylesheet_basename @style), (doc.attr 'stylesdir', ''), false}"#{opts[:self_closing_tag_slash]}>)