Class: Rouge::Formatters::HTML
- Inherits:
-
Object
- Object
- Rouge::Formatters::HTML
- Defined in:
- lib/blusher/shim.rb
Instance Method Summary collapse
Instance Method Details
#__blusher_html_format ⇒ Object
117 |
# File 'lib/blusher/shim.rb', line 117 alias_method :__blusher_html_format, :format |
#format(tokens, &b) ⇒ Object
119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/blusher/shim.rb', line 119 def format(tokens, &b) if !b && instance_of?(Rouge::Formatters::HTML) && !Rouge::Formatter.escape_enabled? && tokens.is_a?(Blusher::Shim::TokenStream) html = Blusher::Native.format_html( tokens.tag, Blusher::Shim.table_for(tokens.tag), tokens.source, Blusher::Shim::SHORTNAME ) return html if html end __blusher_html_format(tokens, &b) end |