Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chefstyle changes #2133

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(/<!--(.*?)-->/, "")
end
Expand Down