test/devcenter-parser_test.rb in devcenter-parser-1.3.7 vs test/devcenter-parser_test.rb in devcenter-parser-1.3.8

- old
+ new

@@ -86,9 +86,49 @@ </div> HTML assert_github_result(md, html) end + it 'supports code blocks, adding a custom class attribute' do + md = <<-MARKDOWN +Paragraph + + :::ruby + puts 'hi' + +Another paragraph +MARKDOWN + + html = <<-HTML +<p>Paragraph</p> + +<pre><code class="ruby">puts 'hi'</code></pre> + +<p>Another paragraph</p> +HTML + assert_maruku_result md, html + + md = <<-MARKDOWN +Paragraph + +```ruby +puts 'hi' +``` + +Another paragraph +MARKDOWN + + html = <<-HTML +<p>Paragraph</p> + +<pre><code class="ruby">puts 'hi' +</code></pre> + +<p>Another paragraph</p> +HTML + assert_github_result md, html + end + it 'github markdown supports regular block quotes without callout|warning|note' do md = <<-MARKDOWN Testing > not a callout \ No newline at end of file