Project

General

Profile

Patch #40197 » 0002-Simplify-code.patch

Marius BĂLTEANU, 2024-08-29 22:21

View differences:

lib/redmine/wiki_formatting/common_mark/formatter.rb
# https://github.com/gjtorikian/commonmarker#render-options
commonmarker_render_options: {
unsafe: true
},
unsafe: true,
hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true ? true : false,
}.freeze,
}.freeze
if Redmine::Configuration['common_mark_enable_hardbreaks'] == true
PIPELINE_CONFIG[:commonmarker_render_options].merge!({hardbreaks: true})
end
PIPELINE_CONFIG[:commonmarker_render_options].freeze
MarkdownPipeline = HTML::Pipeline.new [
MarkdownFilter,
SanitizationFilter,
(2-2/3)