lib/github_changelog_generator/generator/generator.rb
def encapsulate_string(string)
      string.gsub! '\\', '\\\\'

      encpas_chars = %w(< > * _ \( \) [ ] #)
      encpas_chars.each do |char|
        string.gsub! char, "\\#{char}"
      end

      string
    end
# Encapsulate characters to make markdown look as expected.
#
# @param [String] string
# @return [String] encapsulated input string
Encapsulate characters to make markdown look as expected.
Encapsulate characters to make markdown look as expected .
def encapsulate_string(string)
      string.gsub! '\\', '\\\\'
      encpas_chars = %w(< > * _ \( \) [ ] #)
      encpas_chars.each do |char|
        string.gsub! char, "\\#{char}"
      end
      string
    end
def encapsulate_string ( string ) string . gsub! '\\' , '\\\\' encpas_chars = %w( < > * _  \(  \) [ ] # ) encpas_chars . each do | char | string . gsub! char , "\\#{char}" end string end
Encapsulate characters to make markdown look as expected.
Encapsulate characters to make markdown look as expected .
encapsulated input string
encapsulated input string
String
string
None