lib/maruku/output/to_latex.rb
# the ultimate escaping
# (is much better than using \verb)
the ultimate escaping
(is much better than using \verb)
the ultimate escaping ( is much better than using \ verb )
def latex_escape(source)
    source.chars.inject('') do |s, b|
      s << if b == '\\'
             '~'
           elsif SAFE_CHARS.include? b
             b
           else
             "\\char%d" % b[0].ord
           end
    end
  end
def latex_escape ( source ) source . chars . inject ( '' ) do | s , b | s << if b == '\\' '~' elsif SAFE_CHARS . include? b b else "\\char%d" % b [ 0 ] . ord end end end
the ultimate escaping
(is much better than using \verb)
the ultimate escaping ( is much better than using \ verb )
source
<not_specific>