diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-23 04:45:19 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-23 04:45:19 +0000 |
commit | 2b00670e4d204db24b9e38dd5e7a8d72aa7470bc (patch) | |
tree | 2054fb6aeb2f925dcdb1e6a17f9fa7ce43a54f88 /test | |
parent | 678164387152b00ff7f14ed222778ccfbf13323b (diff) | |
download | redmine-2b00670e4d204db24b9e38dd5e7a8d72aa7470bc.tar.gz redmine-2b00670e4d204db24b9e38dd5e7a8d72aa7470bc.zip |
Use Commonmarker instead of Redcarpet by default when rendering Markdown attachments (#36807, #38372).
Patch by Mizuki ISHIKAWA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22146 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/helpers/application_helper_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index fc0351885..ddc55dcb8 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -2229,6 +2229,20 @@ class ApplicationHelperTest < Redmine::HelperTest end end + # TODO: Remove this test when Redcarpet-based Markdown formatter is removed + def test_markdown_formatter + [ + ['markdown', 'markdown'], + ['common_mark', 'common_mark'], + ['textile', 'common_mark'], + ['', 'common_mark'] + ].each do |text_formatting, expected| + with_settings text_formatting: text_formatting do + assert_equal expected, markdown_formatter + end + end + end + private def wiki_links_with_special_characters |