Commit 61dd42c3 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix for Notes handling

parent 2209427f
Loading
Loading
Loading
Loading
+2 −2
Changes for gitlabFilter/grid_table_filter.rb: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ module Banzai
          modified_content = modified_content.gsub(/\\\s*$/, '<br>')
          cell.content += "#{modified_content}#{NEXT_ELEMENT_LIST_MARK}"
        elsif cell.list_flag && !modified_content.empty?
          modified_content = modified_content.gsub(/\s*>\s*/, "") # remove > from the beginning of the line
          modified_content = modified_content.gsub(/\A\s*>\s*/, "") # remove > only at the beginning of the line
          modified_content = modified_content.gsub(/\\\s*$/, '<br>')
          # cell.content = cell.content.strip(nextListElementMark) #remove list element end mark
          cell.content = cell.content.chomp(NEXT_ELEMENT_LIST_MARK.to_s)
@@ -183,7 +183,7 @@ module Banzai
          starts_blockquote = modified_content.lstrip.start_with?('>')
          # Only strip '>' when continuing a soft-broken line, not for a new blockquote
          if cell.content.end_with?('<br>') && !starts_blockquote
            modified_content = modified_content.gsub(/\s*>\s*/, "") # remove > from the beginning of the line
            modified_content = modified_content.sub(/\A\s*>\s*/, "") # remove > only at the beginning of the line
          end
          modified_content = modified_content.gsub(/\\\s*$/, '<br>')
          if cell.content.end_with?('<br>') # a force linebreak is present