class Rouge::Formatters::HTML

def safe_span(tok, safe_val)

def safe_span(tok, safe_val)
  if tok == Token::Tokens::Text
    safe_val
  else
    shortname = tok.shortname \
      or raise "unknown token: #{tok.inspect} for #{safe_val.inspect}"
    "<span class=\"#{shortname}\">#{safe_val}</span>"
  end
end