markitdown 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,2 @@
1
- before_script:
2
- - bundle install
3
1
  script:
4
2
  - bundle exec rake spec
@@ -80,6 +80,7 @@ module Markitdown
80
80
  results << " **"
81
81
  after = "** "
82
82
  when "blockquote"
83
+ results << "\n\n"
83
84
  results << pre
84
85
  after = "\n"
85
86
  when "ol"
@@ -1,3 +1,3 @@
1
1
  module Markitdown
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -25,5 +25,9 @@
25
25
  <li>bullet 3</li>
26
26
  </ol>
27
27
  </p>
28
+ This is some free text
29
+ <blockquote>
30
+ And here's a blockquote, right at the end.
31
+ </blockquote>
28
32
  </body>
29
33
  </html>
@@ -26,6 +26,9 @@ This is paragraph two.
26
26
  1. bullet 2
27
27
  1. bullet 3
28
28
 
29
+ This is some free text
30
+
31
+ > And here's a blockquote, right at the end.
29
32
  "
30
33
  end
31
34
  end
@@ -96,7 +96,9 @@ describe Markitdown do
96
96
  </blockquote>" }
97
97
  it "should return valid markdown" do
98
98
  Markitdown.from_html(html).should ==
99
- " > This is a quote with a list
99
+ "
100
+
101
+ > This is a quote with a list
100
102
  > * item 1
101
103
  > * item 2
102
104
  "
@@ -119,7 +121,9 @@ describe Markitdown do
119
121
  </blockquote>" }
120
122
  it "should return valid markdown" do
121
123
  Markitdown.from_html(html).should ==
122
- " > This is a quote with a list
124
+ "
125
+
126
+ > This is a quote with a list
123
127
  > * item [1.1](http://www.google.com)
124
128
  > 1. item [2.1](http://www.google.com)
125
129
  > 1. item 2.2
@@ -191,7 +191,7 @@ describe Markitdown do
191
191
  let(:html) { "<blockquote>this is a block quote</blockquote>" }
192
192
 
193
193
  it "should return valid markdown" do
194
- Markitdown.from_html(html).should == " > this is a block quote\n"
194
+ Markitdown.from_html(html).should == "\n\n > this is a block quote\n"
195
195
  end
196
196
  end
197
197
 
@@ -203,7 +203,7 @@ describe Markitdown do
203
203
  </blockquote>" }
204
204
 
205
205
  it "should return valid markdown" do
206
- Markitdown.from_html(html).should == " > line 1 line 2 line 3\n"
206
+ Markitdown.from_html(html).should == "\n\n > line 1 line 2 line 3\n"
207
207
  end
208
208
  end
209
209
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markitdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-16 00:00:00.000000000 Z
12
+ date: 2012-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 1329348237213820674
96
+ hash: 73619145748567662
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 1329348237213820674
105
+ hash: 73619145748567662
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 1.8.24