Merge branch 'feature.rouge-20' into 'master'
Upgrade to Rouge 2.0 ## What does this MR do? This MR is a refactor of the HTMLGitlab formatter. The original was copy-pasted from the legacy HTML formatter and adapted to suit our needs. In particular, this MR: * Strips dead code and unused options * Factors out the "wrapping" into the places that care about it - Bonzai and the view helpers * Uses the Rouge 2.0 `token_lines` method to split tokens into lines, removing the custom code we used to do the same * Uses the now-public `span` method instead of re-implementing it ourselves * Removes options to not split into lines - the places where this feature wasn't being used are now using the plain `Formatters::HTML` instead of this class See merge request !4691
Showing
... | ... | @@ -61,7 +61,7 @@ gem 'gitlab_omniauth-ldap', '~> 1.2.1', require: 'omniauth-ldap' |
# Git Wiki | ||
# Required manually in config/initializers/gollum.rb to control load order | ||
gem 'gollum-lib', '~> 4.1.0', require: false | ||
gem 'gollum-lib', '~> 4.2', require: false | ||
gem 'gollum-rugged_adapter', '~> 0.4.2', require: false | ||
# Language detection | ||
... | ... | @@ -105,7 +105,7 @@ gem 'seed-fu', '~> 2.3.5' |
# Markdown and HTML processing | ||
gem 'html-pipeline', '~> 1.11.0' | ||
gem 'task_list', '~> 1.0.2', require: 'task_list/railtie' | ||
gem 'github-markup', '~> 1.3.1' | ||
gem 'github-markup', '~> 1.4' | ||
gem 'redcarpet', '~> 3.3.3' | ||
gem 'RedCloth', '~> 4.3.2' | ||
gem 'rdoc', '~>3.6' | ||
... | ... | @@ -113,7 +113,7 @@ gem 'org-ruby', '~> 0.9.12' |
gem 'creole', '~> 0.5.0' | ||
gem 'wikicloth', '0.8.1' | ||
gem 'asciidoctor', '~> 1.5.2' | ||
gem 'rouge', '~> 1.11' | ||
gem 'rouge', '~> 2.0' | ||
# See https://groups.google.com/forum/#!topic/ruby-security-ann/aSbgDiwb24s | ||
# and https://groups.google.com/forum/#!topic/ruby-security-ann/Dy7YiKb_pMM | ||
... | ... |
Please register or sign in to comment