class Asciidoctor::SyntaxHighlighter::RougeAdapter

def format node, lang, opts

def format node, lang, opts
  if (query_idx = lang && (lang.index '?'))
    lang = lang.slice 0, query_idx
  end
  if opts[:css_mode] != :class && (@style = (style = opts[:style]) && (style_available? style) || DEFAULT_STYLE) && (pre_style_attr_val = base_style @style)
    opts[:transform] = proc {|pre| pre['style'] = pre_style_attr_val }
  end
  super
end