From 524a41eb6c64096d8dc89720fd366cbbc096e35f Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 21 Apr 2025 05:29:13 +0000 Subject: [PATCH] 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 --- lib/redmine/wiki_formatting/common_mark/formatter.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/redmine/wiki_formatting/common_mark/formatter.rb b/lib/redmine/wiki_formatting/common_mark/formatter.rb index aab8eed8b..eb765b6d6 100644 --- a/lib/redmine/wiki_formatting/common_mark/formatter.rb +++ b/lib/redmine/wiki_formatting/common_mark/formatter.rb @@ -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: {