class Nexmo::Markdown::I18n::Smartling::EscapeFilter

Public Instance Methods

call(input) click to toggle source
# File lib/nexmo_markdown_renderer/filters/i18n/smartling/escape_filter.rb, line 6
def call(input)
  input.gsub('\-', '-').gsub('\|', '|').gsub('\[', '[').gsub('\]', ']').gsub('\(', '(').gsub('\)', ')').gsub(/^>\s\n+/, "\n")
end