Disable header_ids, tasklist, shortcodes extensions and github_pre_lang render option that are now enabled by default in commonmark (#40197).

git-svn-id: https://svn.redmine.org/redmine/trunk@23696 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2025-04-21 05:29:13 +00:00
parent 320ed9c3d8
commit 524a41eb6c

View File

@@ -32,6 +32,9 @@ module Redmine
tagfilter: true,
autolink: true,
footnotes: true,
header_ids: nil,
tasklist: false,
shortcodes: false,
}.freeze,
# https://github.com/gjtorikian/commonmarker#parse-options
@@ -41,6 +44,7 @@ module Redmine
# https://github.com/gjtorikian/commonmarker#render-options
commonmarker_render_options: {
unsafe: true,
github_pre_lang: false,
hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true,
}.freeze,
commonmarker_plugins: {