diff options
Diffstat (limited to 'app/helpers/markup_helper.rb')
-rw-r--r-- | app/helpers/markup_helper.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/helpers/markup_helper.rb b/app/helpers/markup_helper.rb index ed9129ff78b..4a5720e757d 100644 --- a/app/helpers/markup_helper.rb +++ b/app/helpers/markup_helper.rb @@ -63,17 +63,8 @@ module MarkupHelper md = markdown_field(object, attribute, options.merge(post_process: false)) return unless md.present? - includes_code = false - tags = %w(a gl-emoji b strong i em pre code p span) - if is_todo - fragment = Nokogiri::HTML.fragment(md) - includes_code = fragment.css('code').any? - - md = fragment - end - context = markdown_field_render_context(object, attribute, options) context.reverse_merge!(truncate_visible_max_chars: max_chars || md.length) @@ -89,12 +80,6 @@ module MarkupHelper ) ) - # Extra span with relative positioning relative due to system font being behind - # background color when username is first word of mention - if is_todo && !includes_code - text = "<span class=\"gl-relative\">\"</span>#{text}<span class=\"gl-relative\">\"</span>" - end - # since <img> tags are stripped, this can leave empty <a> tags hanging around # (as our markdown wraps images in links) strip_empty_link_tags(text).html_safe |