diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2025-04-21 05:29:13 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2025-04-21 05:29:13 +0000 |
commit | 524a41eb6c64096d8dc89720fd366cbbc096e35f (patch) | |
tree | 5d4d508340d6faa5d96bf6a3395e8be1b73a3777 | |
parent | 320ed9c3d8644d7550a96f6c8f2569eaa6edfd9d (diff) | |
download | redmine-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.rb | 4 |
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: { |