Sha256: 1f5befdbed369d684b50583e8a5b4545dd631d522a35288a2ffbbabe3c8260b3
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
require 'spec_helper' describe Kitabu::Markdown do it 'enables fenced code blocks' do html = Kitabu::Markdown.render <<-TEXT.strip_heredoc ```ruby class User end ``` TEXT expect(html).to include('<pre class="highlight ruby">') end it 'enables options' do html = Kitabu::Markdown.render <<-TEXT.strip_heredoc ```php?start_inline=true echo 'Hello'; ``` TEXT expect(html).to include('<span class="k">echo</span>') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kitabu-2.0.3 | spec/kitabu/markdown_spec.rb |
kitabu-2.0.2 | spec/kitabu/markdown_spec.rb |
kitabu-2.0.1 | spec/kitabu/markdown_spec.rb |
kitabu-2.0.0 | spec/kitabu/markdown_spec.rb |