simple_markdown 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,7 +81,6 @@ class SimpleMarkdownTest < ActiveSupport::TestCase # ActionView::TestCase
81
81
  end
82
82
 
83
83
  test "flex block" do
84
- # skip("flex block is in WIP")
85
84
  assert_equal "<div style=\"display:flex; justify-content:space-between; align-items: flex-start;\">\n<div>\n<p>\nThis is text\n</p>\n</div><div>\n<p>\nThis is text\n</p>\n</div>\n</div>",
86
85
  simple_markdown("[2flex]\nThis is text\n\n[flex]\nThis is text\n\n[flex]")
87
86
  end
@@ -101,4 +100,16 @@ class SimpleMarkdownTest < ActiveSupport::TestCase # ActionView::TestCase
101
100
  assert_equal "<center>\n<p>\nText\n</p><p>\nText\n</p>\n</center>", simple_markdown("->\n\nText\n\nText\n\n<-")
102
101
  end
103
102
 
103
+ test "center a block and add text after" do
104
+ assert_equal "<center>\n<p>\nText\n</p>\n</center><p>\nText\n</p>", simple_markdown("->\n\nText\n\n<-\n\nText")
105
+ end
106
+
107
+ test "center a flex" do
108
+ assert_equal "<center>\n<div style=\"display:flex; justify-content:space-between; align-items: flex-start;\">\n<div>\n<p>\nText\n</p>\n</div>\n</div>\n</center><p>\nText\n</p>", simple_markdown("->\n\n[1flex]\n\nText\n\n[flex]\n\n<-\n\nText")
109
+ end
110
+
111
+ test "center a title" do
112
+ assert_equal "<center>\n<h1>Title</h1>\n</center>", simple_markdown("->\n#Title\n<-")
113
+ end
114
+
104
115
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noémien Kocher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-27 00:00:00.000000000 Z
11
+ date: 2015-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails