Sha256: 79f44c14ac834809fc973d5e3a57e0c07ad2aea792692389b8ecd2d100ea3739
Contents?: true
Size: 960 Bytes
Versions: 2
Compression:
Stored size: 960 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_kramdown text = 'Hello, World!' doc = Kramdown::Document.new( text ) puts "options:" pp doc.options html = "<p>Hello, World!</p>\n" latex = "Hello, World!\n\n" assert_equal html, doc.to_html assert_equal latex, doc.to_latex end # method test_kramdown def test_gfm_w_rouge text = "A Line.\nAnother Line.\n" doc = Kramdown::Document.new( text, input: 'GFM', hard_wrap: false, syntax_highlighter: 'rouge' ) puts "options:" pp doc.options html = "<p>A Line.\nAnother Line.</p>\n" pp doc.to_html assert_equal html, doc.to_html end # method test_gfm_w_rouge end # class TestKramdown
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kramdown-service-1.0.0 | test/test_kramdown.rb |
kramdown-service-0.3.0 | test/test_kramdown.rb |