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

Fix for lists in gitlab filter

parent 005db9f4
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -646,8 +646,8 @@ module Banzai
              rowspan = cell.rowspan > 1 ? %( rowspan="#{cell.rowspan}") : ""
              colspan = cell.colspan > 1 ? %( colspan="#{cell.colspan}") : ""
              content_with_breaklines = cell.content
              content_with_breaklines = cell.content&.gsub("<br />", "\n")
              content_with_breaklines = content_with_breaklines&.gsub(NEXT_ELEMENT_LIST_MARK.to_s, "\n")
              #content_with_breaklines = cell.content&.gsub("<br />", "\n")
              content_with_breaklines = content_with_breaklines&.split(NEXT_ELEMENT_LIST_MARK.to_s)&.join("\n")
              html += %(<td#{rowspan}#{colspan} markdown="1" style="text-align: #{cell.alignment}">\n\n#{content_with_breaklines}\n\n</td>)
            end
            html += '</tr>'