mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Disable syntax_highlighter plugin shipped by commonmark (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23190 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c630acfa6f
commit
229d921391
@ -43,6 +43,9 @@ module Redmine
|
||||
unsafe: true,
|
||||
hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true ? true : false,
|
||||
}.freeze,
|
||||
commonmarker_plugins: {
|
||||
syntax_highlighter: nil
|
||||
}.freeze,
|
||||
}.freeze
|
||||
|
||||
MarkdownPipeline = HTML::Pipeline.new [
|
||||
|
||||
@ -36,7 +36,7 @@ module Redmine
|
||||
extension: extensions,
|
||||
render: render_options,
|
||||
parse: parse_options
|
||||
})
|
||||
}, plugins: plugins )
|
||||
|
||||
html.rstrip!
|
||||
html
|
||||
@ -55,6 +55,10 @@ module Redmine
|
||||
def render_options
|
||||
context.fetch :commonmarker_render_options, {}
|
||||
end
|
||||
|
||||
def plugins
|
||||
context.fetch :commonmarker_plugins, {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user