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:
Marius Balteanu
2024-11-03 12:02:39 +00:00
parent 586020045b
commit da87320ebc
12 changed files with 32 additions and 31 deletions

View File

@@ -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