Sha256: 777877cc4cbbadc39ff8424b57ff153d2209bc5d95a208c034d5fb1b68744f8f
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
# frozen_string_literal: true require('test_helper') class TestQfmCustomBlock < Minitest::Test def setup text = <<~MD :::foo bar message - list1 - list2 ```ruby puts 'hello' ``` <div>html block</div> ::: MD @doc = QiitaMarker.render_doc(text, %i[UNSAFE], %i[custom_block]) @expected = <<~HTML <div data-type="customblock" data-metadata="foo bar"> <p>message</p> <ul> <li>list1</li> <li>list2</li> </ul> <pre><code class="language-ruby">puts 'hello' </code></pre> <div>html block</div> </div> HTML end def test_to_html assert_equal(@expected, @doc.to_html(%i[UNSAFE], %i[custom_block])) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qiita_marker-0.23.2.3 | test/test_qfm_custom_block.rb |
qiita_marker-0.23.2.2 | test/test_qfm_custom_block.rb |