mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Updates commonmark gem version to 1.1.5 which switches from libcmark-gfm to comrak/Rust.
git-svn-id: https://svn.redmine.org/redmine/trunk@23188 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -26,29 +26,26 @@ module Redmine
|
||||
# configuration of the rendering pipeline
|
||||
PIPELINE_CONFIG = {
|
||||
# https://github.com/gjtorikian/commonmarker#extension-options
|
||||
commonmarker_extensions: [
|
||||
:table,
|
||||
:strikethrough,
|
||||
:tagfilter,
|
||||
:autolink
|
||||
].freeze,
|
||||
commonmarker_extensions: {
|
||||
table: true,
|
||||
strikethrough: true,
|
||||
tagfilter: true,
|
||||
autolink: true,
|
||||
footnotes: true,
|
||||
}.freeze,
|
||||
|
||||
# https://github.com/gjtorikian/commonmarker#parse-options
|
||||
commonmarker_parse_options: [
|
||||
:FOOTNOTES,
|
||||
:STRIKETHROUGH_DOUBLE_TILDE,
|
||||
:UNSAFE,
|
||||
:VALIDATE_UTF8
|
||||
].freeze,
|
||||
commonmarker_parse_options: {
|
||||
}.freeze,
|
||||
|
||||
# https://github.com/gjtorikian/commonmarker#render-options
|
||||
commonmarker_render_options: [
|
||||
:UNSAFE
|
||||
],
|
||||
commonmarker_render_options: {
|
||||
unsafe: true
|
||||
},
|
||||
}.freeze
|
||||
|
||||
if Redmine::Configuration['common_mark_enable_hardbreaks'] == true
|
||||
PIPELINE_CONFIG[:commonmarker_render_options].push(:HARDBREAKS)
|
||||
PIPELINE_CONFIG[:commonmarker_render_options].merge!({hardbreaks: true})
|
||||
end
|
||||
PIPELINE_CONFIG[:commonmarker_render_options].freeze
|
||||
|
||||
|
||||
Reference in New Issue
Block a user