Skip to content

Commit

Permalink
Chefstyle issues fixed
Browse files Browse the repository at this point in the history
Signed-off-by: smriti <sgarg@msystechnologies.com>
  • Loading branch information
msys-sgarg committed Aug 13, 2021
1 parent 7c3a814 commit fea1e6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/supermarket/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/supermarket/app/helpers/markdown_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(/&lt;!--(.*?)--&gt;/, "")
end
Expand Down

0 comments on commit fea1e6c

Please sign in to comment.