Project

General

Profile

Defect #13723 » expand-macros-before-parsing-sections.patch

Marcin Szewczyk, 2023-06-13 14:39

View differences:

application_helper.rb 2023-06-13 13:46:37.586286893 +0200 → application_helper.rb 2023-06-13 14:27:22.531156346 +0200
877 877
    @heading_anchors = {}
878 878
    @current_section = 0 if options[:edit_section_links]
879 879

  
880
    parse_sections(text, project, obj, attr, only_path, options)
881 880
    text = parse_non_pre_blocks(text, obj, macros, options) do |txt|
882 881
      [:parse_inline_attachments, :parse_hires_images, :parse_wiki_links, :parse_redmine_links].each do |method_name|
883 882
        send method_name, txt, project, obj, attr, only_path, options
884 883
      end
885 884
    end
885
    parse_sections(text, project, obj, attr, only_path, options)
886 886
    parse_headings(text, project, obj, attr, only_path, options)
887 887

  
888 888
    if @parsed_headings.any?
(1-1/2)