summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2025-04-21 05:29:13 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2025-04-21 05:29:13 +0000
commit524a41eb6c64096d8dc89720fd366cbbc096e35f (patch)
tree5d4d508340d6faa5d96bf6a3395e8be1b73a3777
parent320ed9c3d8644d7550a96f6c8f2569eaa6edfd9d (diff)
downloadredmine-524a41eb6c64096d8dc89720fd366cbbc096e35f.tar.gz
redmine-524a41eb6c64096d8dc89720fd366cbbc096e35f.zip
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
-rw-r--r--lib/redmine/wiki_formatting/common_mark/formatter.rb4
1 files changed, 4 insertions, 0 deletions
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: {