diff options
author | Jared Deckard <jared.deckard@gmail.com> | 2016-09-30 16:38:02 -0500 |
---|---|---|
committer | Jared Deckard <jared.deckard@gmail.com> | 2016-09-30 16:38:02 -0500 |
commit | 88c1db4a2b365a75a43c46a0bed58ca1f8069408 (patch) | |
tree | a1a0ba8f225f3334c0df2db004ecf9a0bafda168 /lib/banzai | |
parent | f4d4113240e6851fd8eede1170a60c06b22578e1 (diff) | |
download | gitlab-ce-88c1db4a2b365a75a43c46a0bed58ca1f8069408.tar.gz |
Replace talk_list patch with a patched fork
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/filter/task_list_filter.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/banzai/filter/task_list_filter.rb b/lib/banzai/filter/task_list_filter.rb index 4efbcaf5c7f..9fa5f589f3e 100644 --- a/lib/banzai/filter/task_list_filter.rb +++ b/lib/banzai/filter/task_list_filter.rb @@ -2,29 +2,7 @@ require 'task_list/filter' module Banzai module Filter - # Work around a bug in the default TaskList::Filter that adds a `task-list` - # class to every list element, regardless of whether or not it contains a - # task list. - # - # This is a (hopefully) temporary fix, pending a new release of the - # task_list gem. - # - # See https://github.com/github/task_list/pull/60 - module ClassNamesFilter - def add_css_class(node, *new_class_names) - if new_class_names.include?('task-list') - # Don't add class to all lists - return - elsif new_class_names.include?('task-list-item') - super(node.parent, 'task-list') - end - - super(node, *new_class_names) - end - end - class TaskListFilter < TaskList::Filter - prepend ClassNamesFilter end end end |