reverse_markdown 1.0.0 → 1.0.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.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/CHANGELOG.md +4 -0
- data/lib/reverse_markdown/converters/base.rb +1 -1
- data/lib/reverse_markdown/converters/text.rb +2 -2
- data/lib/reverse_markdown/version.rb +1 -1
- data/spec/assets/from_the_wild.html +4 -0
- data/spec/components/from_the_wild_spec.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c57772b3497c7c256052c61ccd42a3c003671429
|
4
|
+
data.tar.gz: 2e90d7b68ce83784464dab7b3500b4a3fb5e22a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ece1678de088490e0e1442f9deeee55cc5346c2e8573643fdc628f298efe689ce145f0b87a04d1ed927784bcf452e3ecfc3751c861e747d1d96d76fcfec4d4d
|
7
|
+
data.tar.gz: 963b8984561fdea0eb8f7757ce1a727fdc6c0e7a7964a012e15844ca210988714232af08568c25d838d382de6a348f9b119187bfdcbb3a230110fbbb41bb1472
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## 1.0.1 - Jan 2016
|
5
|
+
### Changes
|
6
|
+
- Prevent double escaping of * and _, thanks @craig-day (#61)
|
7
|
+
|
4
8
|
## 1.0.0 - Nov 2015
|
5
9
|
### Changes
|
6
10
|
- BREAKING: Parsing was significantly improved, thanks @craig-day (#60)
|
@@ -31,14 +31,14 @@ module ReverseMarkdown
|
|
31
31
|
|
32
32
|
text = preserve_keychars_within_backticks(text)
|
33
33
|
text = preserve_tags(text)
|
34
|
-
|
34
|
+
|
35
35
|
text
|
36
36
|
end
|
37
37
|
|
38
38
|
def preserve_nbsp(text)
|
39
39
|
text.gsub(/\u00A0/, " ")
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
def preserve_tags(text)
|
43
43
|
text.gsub(/[<>]/, '>' => '\>', '<' => '\<')
|
44
44
|
end
|
@@ -7,7 +7,11 @@ describe ReverseMarkdown do
|
|
7
7
|
subject { ReverseMarkdown.convert(input) }
|
8
8
|
|
9
9
|
it "should make sense of strong-crazy markup (as seen in the wild)" do
|
10
|
-
expect(subject).to
|
10
|
+
expect(subject).to include "**. \n \\*\\*\\* intentcast** : logo design \n **.**\n\n"
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should not over escape * or _" do
|
14
|
+
expect(subject).to include '[ I\_AM\_HELPFUL](example.com/foo_bar)'
|
11
15
|
end
|
12
16
|
|
13
17
|
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.1
|
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: 2016-01-29 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.5.1
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: Convert html code into markdown.
|