Sha256: ec1d49cbf1dea6dae1727e621a68d14b7d18148f53501a8ca5d82d8faa14a310

Contents?: true

Size: 957 Bytes

Versions: 11

Compression:

Stored size: 957 Bytes

Contents

# encoding: utf-8

###
#  to run use
#     ruby -I ./lib -I ./test test/test_kramdown.rb


require 'helper'


class TestKramdown < MiniTest::Test

def test_to_html
  
  config = {
    'input'     => 'GFM',
    'hard_wrap' => false
  }
  
  content =<<EOS
# Heading 1

some text with `code` and some more text
and some more text

```
a code block
```

some more text
EOS
  
  html = Kramdown::Document.new(content, config).to_html
  pp html
  assert true
end  # method test_to_html


def test_rouge
  
  config = {
    'input'     => 'GFM',
    'hard_wrap' => false,
    'syntax_highlighter' => 'rouge'
  }
  
  content =<<EOS
# Heading 1

some text with `code` and some more text
and some more text

```ruby
puts 'Hello, World!'
```

some more text
EOS
  
  html = Kramdown::Document.new(content, config).to_html
  pp html
  assert true
end  # method test_rouge


end # class TestKramdown

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
slideshow-models-4.1.0 test/test_kramdown.rb
slideshow-models-4.0.1 test/test_kramdown.rb
slideshow-models-4.0.0 test/test_kramdown.rb
slideshow-models-3.3.1 test/test_kramdown.rb
slideshow-models-3.3.0 test/test_kramdown.rb
slideshow-models-3.2.0 test/test_kramdown.rb
slideshow-models-3.1.1 test/test_kramdown.rb
slideshow-models-3.1.0 test/test_kramdown.rb
slideshow-models-3.0.2 test/test_kramdown.rb
slideshow-models-3.0.1 test/test_kramdown.rb
slideshow-models-3.0.0 test/test_kramdown.rb