Sha256: e94aa20a7afa9f661a3ed53a12571019e76dbd12ecb2dd180818fac363f2abda
Contents?: true
Size: 1011 Bytes
Versions: 5
Compression:
Stored size: 1011 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe HtmlEmailCreator::Formatter do describe "Markdown" do let(:md) { HtmlEmailCreator::Formatters::Markdown.id } it "should convert correctly" do HtmlEmailCreator::Formatter.new("**I am strong**").find(md).format.should eql("<p><strong>I am strong</strong></p>") end it "should support table extension" do markdown = <<-eos | First | Second | Third | |:------|:-------|:------| | 1 | 2 | 3 | eos html = <<eos <table> <thead> <tr> <th style="text-align: left">First</th> <th style="text-align: left">Second</th> <th style="text-align: left">Third</th> </tr> </thead> <tbody> <tr> <td style="text-align: left">1</td> <td style="text-align: left">2</td> <td style="text-align: left">3</td> </tr> </tbody> </table> eos HtmlEmailCreator::Formatter.new(markdown).find(md).format.should eql(html.strip) end end end
Version data entries
5 entries across 5 versions & 1 rubygems