diff --git a/src/supermarket/Gemfile b/src/supermarket/Gemfile index c4bc03ece..84fa9a83d 100644 --- a/src/supermarket/Gemfile +++ b/src/supermarket/Gemfile @@ -8,7 +8,7 @@ gem "omniauth-chef-oauth2" gem "omniauth-github" gem "omniauth-oauth2", "~> 1.7.1" gem "omniauth-rails_csrf_protection" -gem "coderay" #markdown doc - syntax highlighting +gem "coderay" # markdown doc - syntax highlighting gem "sidekiq", "~> 4.2" gem "sidekiq-cron" diff --git a/src/supermarket/app/helpers/markdown_helper.rb b/src/supermarket/app/helpers/markdown_helper.rb index ba77c3af9..4775945d1 100644 --- a/src/supermarket/app/helpers/markdown_helper.rb +++ b/src/supermarket/app/helpers/markdown_helper.rb @@ -15,7 +15,7 @@ def initialize(extensions = {}) ) end - #Syntax highlighting using CodeRay library + # Syntax highlighting using CodeRay library def block_code(code, language) if language.present? CodeRay.scan(code, language).div @@ -24,7 +24,7 @@ def block_code(code, language) end end - #process doc to remove markdown comments as the same is not supported by RedCarpet + # process doc to remove markdown comments as it's not supported by RedCarpet def remove_comments(raw_html) raw_html.gsub(/<!--(.*?)-->/, "") end