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

Update grid table filter and pipeline files for Gitlab v19.3.1

parent 9043d37f
Loading
Loading
Loading
Loading
Loading
+4 −3
Changes for gitlabFilter/grid_table_filter.rb: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -692,12 +692,12 @@ module Banzai
      # rubocop:enable Metrics/AbcSize

      def call
        return @text unless MarkdownFilter.glfm_markdown?(context)
        
        current_text = text
        regex = MARKDOWN_GRID_TABLE_BLOCK_REGEX
        return @text unless regex.match?(@text)
        return current_text unless regex.match?(current_text)

        @text.gsub(regex) do
        updated_text = current_text.gsub(regex) do
          match = Regexp.last_match
          # Extract the grid table content from the match
          grid_table = match[:code]
@@ -709,6 +709,7 @@ module Banzai
            match.to_s
          end
        end
        updated_text
      end
    end
  end
+1 −1
Changes for gitlabFilter/plain_markdown_pipeline.rb: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ module Banzai
          Filter::IncludeFilter,
          Filter::GridTableFilter,
          Filter::MarkdownFilter,
          Filter::ConvertTextToDocFilter,
          Filter::ParseHtmlFilter,
        ]
      end
    end