Project

General

Profile

Feature #43234 » 0002-Add-test-for-enabling-CJK-friendly-emphasis-extension.patch

Katsuya HIDAKA, 2025-09-23 19:53

View differences:

test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb
342 342
      assert_not_include 'markdown-alert', html
343 343
    end
344 344

  
345
    def test_should_enable_cjk_friendly_emphasis_extension
346
      assert_equal(
347
        "<p><strong>この文は重要です。</strong>而且,<strong>这句话也非常重要。</strong>이 문장은 중요하지 않습니다.</p>",
348
        to_html("**この文は重要です。**而且,**这句话也非常重要。**이 문장은 중요하지 않습니다.")
349
      )
350
    end
351

  
345 352
    private
346 353

  
347 354
    def assert_section_with_hash(expected, text, index)
(5-5/5)