reverse_markdown 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b06289903207da3e585d5b1c09e438dfcbdcbdf
|
4
|
+
data.tar.gz: aef0c5b8f5fbbe30991641a3c70a877080d873dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e209ff266f3e0bf3fe80246106b9b1ca2219eaf19514fd7a523ecccd58996a576cd1e1a5d1145c471aa1fc9d0dbfc9ee34a607772b238bb931f9dd2a132ba9
|
7
|
+
data.tar.gz: cc24189f772e4cb9fa240fa8901912729b33a81c727179bc0cc05cc5f6ea06f9512421967c9e01341b4a74f9d8aabed91d4156abbfff20cb4d7e4e7e96e82c67
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
7
|
+
"\n\n> " << content.lines.to_a.join('> ') << "\n\n"
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -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.
|
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:
|
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.
|
202
|
+
rubygems_version: 2.6.4
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: Convert html code into markdown.
|