Project

General

Profile

Patch #40197 » 0003-Disable-syntax_highlighter-plugin-shipped-by-commonm.patch

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

View differences:

lib/redmine/wiki_formatting/common_mark/formatter.rb
unsafe: true,
hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true ? true : false,
}.freeze,
commonmarker_plugins: {
syntax_highlighter: nil
}.freeze,
}.freeze
MarkdownPipeline = HTML::Pipeline.new [
lib/redmine/wiki_formatting/common_mark/markdown_filter.rb
extension: extensions,
render: render_options,
parse: parse_options
})
}, plugins: plugins )
html.rstrip!
html
......
def render_options
context.fetch :commonmarker_render_options, {}
end
def plugins
context.fetch :commonmarker_plugins, {}
end
end
end
end
(3-3/3)