Sha256: 6f7ca0ff436078b1a11c953e85ab4de5cf656f320a8b7e3ecc2af2b9b658fa3b

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

module Rouge
class CSSTheme
  # Patch style_for to return most specific style first
  # See https://github.com/jneen/rouge/issues/280 (fix pending)
  def style_for token
    token.token_chain.reverse_each do |t|
      if (s = styles[t])
        return s
      end
    end
    nil
  end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.alpha.11 lib/asciidoctor-pdf/rouge_ext/css_theme.rb
asciidoctor-pdf-1.5.0.alpha.10 lib/asciidoctor-pdf/rouge_ext/css_theme.rb
asciidoctor-pdf-1.5.0.alpha.9 lib/asciidoctor-pdf/rouge_ext/css_theme.rb