Patch #40197 » 0003-Disable-syntax_highlighter-plugin-shipped-by-commonm.patch
| lib/redmine/wiki_formatting/common_mark/formatter.rb | ||
|---|---|---|
| 43 | 43 |
unsafe: true, |
| 44 | 44 |
hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true ? true : false, |
| 45 | 45 |
}.freeze, |
| 46 |
commonmarker_plugins: {
|
|
| 47 |
syntax_highlighter: nil |
|
| 48 |
}.freeze, |
|
| 46 | 49 |
}.freeze |
| 47 | 50 | |
| 48 | 51 |
MarkdownPipeline = HTML::Pipeline.new [ |
| lib/redmine/wiki_formatting/common_mark/markdown_filter.rb | ||
|---|---|---|
| 36 | 36 |
extension: extensions, |
| 37 | 37 |
render: render_options, |
| 38 | 38 |
parse: parse_options |
| 39 |
}) |
|
| 39 |
}, plugins: plugins )
|
|
| 40 | 40 | |
| 41 | 41 |
html.rstrip! |
| 42 | 42 |
html |
| ... | ... | |
| 55 | 55 |
def render_options |
| 56 | 56 |
context.fetch :commonmarker_render_options, {}
|
| 57 | 57 |
end |
| 58 | ||
| 59 |
def plugins |
|
| 60 |
context.fetch :commonmarker_plugins, {}
|
|
| 61 |
end |
|
| 58 | 62 |
end |
| 59 | 63 |
end |
| 60 | 64 |
end |
- « Previous
- 1
- 2
- 3
- Next »