Sha256: 5e06fb8a6242133ea93d26a539306de12d8840ad38b17efd60ff53065dbdb38b

Contents?: true

Size: 736 Bytes

Versions: 7

Compression:

Stored size: 736 Bytes

Contents

require 'test_helper'

class TestExtensions < Minitest::Test
  def test_full_info_string
    md = <<-MD
```ruby
module Foo
```
    MD

    CommonMarker.render_html(md, :FULL_INFO_STRING).tap do |out|
      assert_includes out, %q(<pre><code class="language-ruby">)
    end

    md = <<-MD
```ruby my info string
module Foo
```
    MD

    CommonMarker.render_html(md, :FULL_INFO_STRING).tap do |out|
      assert_includes out, %q(<pre><code class="language-ruby" data-meta="my info string">)
    end

    md = <<-MD
```ruby my \x00 string
module Foo
```
    MD

    CommonMarker.render_html(md, :FULL_INFO_STRING).tap do |out|
      assert_includes out, %Q(<pre><code class="language-ruby" data-meta="my � string">)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
commonmarker-0.18.2 test/test_options.rb
commonmarker-0.18.1 test/test_options.rb
commonmarker-0.18.0 test/test_options.rb
commonmarker-0.17.13 test/test_options.rb
commonmarker-0.17.12 test/test_options.rb
commonmarker-0.17.11 test/test_options.rb
commonmarker-0.17.10 test/test_options.rb