Patch #40197 » 0003-Disable-syntax_highlighter-plugin-shipped-by-commonm.patch
| 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
|
||
- « Previous
- 1
- 2
- 3
- Next »