class Rouge::CSSTheme
Public Instance Methods
style_for(token)
click to toggle source
Patch #style_for to return most specific style first See github.com/jneen/rouge/issues/280 (fix pending)
# File lib/asciidoctor-pdf/rouge_ext/css_theme.rb, line 5 def style_for token token.token_chain.reverse_each do |t| if (s = styles[t]) return s end end nil end