reverse_markdown 1.0.3 → 1.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79f0ef170d268f3d83a3d858772d19fcfe44208c
4
- data.tar.gz: 63136ceee1bf012ab22a2f3b0992e019a88e652c
3
+ metadata.gz: 0b06289903207da3e585d5b1c09e438dfcbdcbdf
4
+ data.tar.gz: aef0c5b8f5fbbe30991641a3c70a877080d873dc
5
5
  SHA512:
6
- metadata.gz: 79026e3687f8ffb54aa7c26309481b98c797aad08aeafe92a8c92d8080f455e6014d3337c5a241d0e9e0baadf9011d3c830ce86d75df443b94c3d42377fee88b
7
- data.tar.gz: 66a4ef51b5ba867d4b9b677b4147c491a3ba021dcde562eb5a065ac5415cf60ba891efb940c0ad134a5c9a121149a11a35a56b12216ad61b13b2c13213a76ecf
6
+ metadata.gz: b7e209ff266f3e0bf3fe80246106b9b1ca2219eaf19514fd7a523ecccd58996a576cd1e1a5d1145c471aa1fc9d0dbfc9ee34a607772b238bb931f9dd2a132ba9
7
+ data.tar.gz: cc24189f772e4cb9fa240fa8901912729b33a81c727179bc0cc05cc5f6ea06f9512421967c9e01341b4a74f9d8aabed91d4156abbfff20cb4d7e4e7e96e82c67
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 1.0.4 - November 2017
5
+ - Make blockquote behave as true block, thanks for reporting @kanedo (#67)
6
+
4
7
  ## 1.0.3 - Apr 2016
5
8
  ### Changes
6
9
  - Use tag_border option while cleaning up, thanks @AlexanderPruss (#66)
@@ -4,7 +4,7 @@ module ReverseMarkdown
4
4
  def convert(node, state = {})
5
5
  content = treat_children(node, state).strip
6
6
  content = ReverseMarkdown.cleaner.remove_newlines(content)
7
- '> ' << content.lines.to_a.join('> ')
7
+ "\n\n> " << content.lines.to_a.join('> ') << "\n\n"
8
8
  end
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module ReverseMarkdown
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
@@ -101,4 +101,3 @@ describe 'Round trip: HTML to markdown (via reverse_markdown) to HTML (via redca
101
101
  })
102
102
  end
103
103
  end
104
-
@@ -7,12 +7,12 @@ describe ReverseMarkdown::Converters::Blockquote do
7
7
  it 'converts nested elements as well' do
8
8
  input = node_for("<blockquote><ul><li>foo</li></ul></blockquote>")
9
9
  result = converter.convert(input)
10
- expect(result).to eq "> - foo"
10
+ expect(result).to eq "\n\n> - foo\n\n"
11
11
  end
12
12
 
13
13
  it 'can deal with paragraphs inside' do
14
14
  input = node_for("<blockquote><p>Some text.</p><p>Some more text.</p></blockquote>")
15
15
  result = converter.convert(input)
16
- expect(result).to eq "> Some text.\n> \n> Some more text."
16
+ expect(result).to eq "\n\n> Some text.\n> \n> Some more text.\n\n"
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reverse_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Opper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  requirements: []
201
201
  rubyforge_project: reverse_markdown
202
- rubygems_version: 2.5.1
202
+ rubygems_version: 2.6.4
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Convert html code into markdown.