test/devcenter-parser_test.rb in devcenter-parser-2.3.0 vs test/devcenter-parser_test.rb in devcenter-parser-2.4.0

- old
+ new

@@ -406,9 +406,38 @@ md = '<a name="heh"></a>' html = '<p><a name="heh"></a></p>' assert_parsing_result md, html end + it 'generates blockquotes for GitHub-style callouts in uppercase format' do + md = <<-MARKDOWN +> [!WARNING] +> This is a warning + MARKDOWN + + expected = <<-HTML +<div class="warning"> +<p>This is a warning</p> +</div> + HTML + + assert_parsing_result md, expected + end + + it 'generates blockquotes for GitHub-style callouts in lowercase format' do + md = <<-MARKDOWN +> [!warning] +> This is a warning + MARKDOWN + + expected = <<-HTML +<div class="warning"> +<p>This is a warning</p> +</div> + HTML + + assert_parsing_result md, expected + end it 'generates separate blockquotes from blockquotes separated by empty lines' do md = <<-MARKDOWN > foo