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