Loading gitlabFilter/grid_table_filter.rb +4 −3 Changes for gitlabFilter/grid_table_filter.rb: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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] Loading @@ -709,6 +709,7 @@ module Banzai match.to_s end end updated_text end end end Loading gitlabFilter/plain_markdown_pipeline.rb +1 −1 Changes for gitlabFilter/plain_markdown_pipeline.rb: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ module Banzai Filter::IncludeFilter, Filter::GridTableFilter, Filter::MarkdownFilter, Filter::ConvertTextToDocFilter, Filter::ParseHtmlFilter, ] end end Loading Loading
gitlabFilter/grid_table_filter.rb +4 −3 Changes for gitlabFilter/grid_table_filter.rb: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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] Loading @@ -709,6 +709,7 @@ module Banzai match.to_s end end updated_text end end end Loading
gitlabFilter/plain_markdown_pipeline.rb +1 −1 Changes for gitlabFilter/plain_markdown_pipeline.rb: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ module Banzai Filter::IncludeFilter, Filter::GridTableFilter, Filter::MarkdownFilter, Filter::ConvertTextToDocFilter, Filter::ParseHtmlFilter, ] end end Loading