fbd75c35fd
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 |
||
---|---|---|
.. | ||
appearances_helper.rb | ||
application_helper.rb | ||
application_settings_helper.rb | ||
auth_helper.rb | ||
blob_helper.rb | ||
branches_helper.rb | ||
broadcast_messages_helper.rb | ||
button_helper.rb | ||
ci_status_helper.rb | ||
commits_helper.rb | ||
compare_helper.rb | ||
dashboard_helper.rb | ||
diff_helper.rb | ||
dropdowns_helper.rb | ||
emails_helper.rb | ||
events_helper.rb | ||
explore_helper.rb | ||
external_wiki_helper.rb | ||
form_helper.rb | ||
git_helper.rb | ||
gitlab_markdown_helper.rb | ||
gitlab_routing_helper.rb | ||
graph_helper.rb | ||
groups_helper.rb | ||
icons_helper.rb | ||
import_helper.rb | ||
issuables_helper.rb | ||
issues_helper.rb | ||
javascript_helper.rb | ||
kerberos_spnego_helper.rb | ||
labels_helper.rb | ||
members_helper.rb | ||
merge_requests_helper.rb | ||
milestones_helper.rb | ||
namespaces_helper.rb | ||
nav_helper.rb | ||
notes_helper.rb | ||
notifications_helper.rb | ||
page_layout_helper.rb | ||
preferences_helper.rb | ||
projects_helper.rb | ||
runners_helper.rb | ||
search_helper.rb | ||
selects_helper.rb | ||
snippets_helper.rb | ||
sorting_helper.rb | ||
submodule_helper.rb | ||
tab_helper.rb | ||
tags_helper.rb | ||
time_helper.rb | ||
todos_helper.rb | ||
tree_helper.rb | ||
triggers_helper.rb | ||
u2f_helper.rb | ||
version_check_helper.rb | ||
visibility_level_helper.rb | ||
workhorse_helper.rb |