class Rouge::Formatters::HTML
def span(tok, val)
def span(tok, val) val = val.gsub(/[&<>]/, TABLE_FOR_ESCAPE_HTML) shortname = tok.shortname or raise "unknown token: #{tok.inspect} for #{val.inspect}" if shortname.empty? yield val else if @inline_theme rules = @inline_theme.style_for(tok).rendered_rules yield "<span style=\"#{rules.to_a.join(';')}\">#{val}</span>" else yield "<span class=\"#{shortname}\">#{val}</span>" end end end