From 320ed9c3d8644d7550a96f6c8f2569eaa6edfd9d Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 21 Apr 2025 05:26:03 +0000 Subject: [PATCH] Updates commonmarker to 2.3.0 (#40197). git-svn-id: https://svn.redmine.org/redmine/trunk@23695 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- Gemfile | 2 +- lib/redmine/wiki_formatting/common_mark/markdown_filter.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 6dd6ccb5f..70443e3b4 100644 --- a/Gemfile +++ b/Gemfile @@ -46,7 +46,7 @@ end # Optional CommonMark support, not for JRuby group :common_mark do - gem "commonmarker", '~> 1.1.0' + gem "commonmarker", '~> 2.3.0' gem 'deckar01-task_list', '2.3.2' end diff --git a/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb b/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb index b52a20f1c..cf5c92818 100644 --- a/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb +++ b/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb @@ -33,10 +33,10 @@ module Redmine def call html = Commonmarker.to_html(@text, options: { - extension: extensions, + extension: extensions, render: render_options, parse: parse_options - }, plugins: plugins) + }, plugins: plugins) html.rstrip! html