summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-11-11 19:48:32 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-11-11 19:48:32 +0000
commitd951636a01b9af4fb571c9ac586353be7f085bbf (patch)
tree393f842dfba47b1982b0e953082b49dfd32bc7fe
parent5851f65bb8b1c6a469b7ffa66a744f459faf739d (diff)
downloadredmine-d951636a01b9af4fb571c9ac586353be7f085bbf.tar.gz
redmine-d951636a01b9af4fb571c9ac586353be7f085bbf.zip
Replaces two more occurrences of CommonMarker (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23251 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/preparation.rb2
-rw-r--r--test/helpers/application_helper_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/preparation.rb b/lib/redmine/preparation.rb
index 1aeb81e46..822662e11 100644
--- a/lib/redmine/preparation.rb
+++ b/lib/redmine/preparation.rb
@@ -408,7 +408,7 @@ module Redmine
WikiFormatting.map do |format|
format.register :textile
- if Object.const_defined?(:CommonMarker)
+ if Object.const_defined?(:Commonmarker)
format.register :common_mark, label: 'CommonMark Markdown (GitHub Flavored)'
end
end
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 3ffa24281..fabaa31ed 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1669,7 +1669,7 @@ class ApplicationHelperTest < Redmine::HelperTest
end
end
- if Object.const_defined?(:CommonMarker)
+ if Object.const_defined?(:Commonmarker)
def test_toc_with_markdown_formatting_should_be_parsed
with_settings :text_formatting => 'common_mark' do
assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading'