parity-RedCloth 4.2.9 → 4.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redcloth/formatters/html.rb +3 -1
- data/lib/redcloth/version.rb +1 -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: ef1578fa6868dbd35ac211b9cb5718d01fe15447
|
4
|
+
data.tar.gz: d74897427f26c75fb00e19e4896df1e5a3370fc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a449dc63242b9a90c6591707eb3b2062d4b5cda71a529e3cfcec95c384ff2ce4d1d14c378268769905e6d4a378a4ced3cf7bec3e7cb369280e2229d5650c966a
|
7
|
+
data.tar.gz: 45354e473af4a49959d251d34226fc7381ba81c4bb8e8162785113e91d3726685b838f7e8d09a4c269e44bc976943205066c7ae749402df793b83ee0a8ab2d86
|
@@ -118,7 +118,9 @@ module RedCloth::Formatters::HTML
|
|
118
118
|
return opts[:href] unless auto_link_urls
|
119
119
|
href_with_proto = opts[:href]
|
120
120
|
href_with_proto = 'http://' + href_with_proto unless href_with_proto.index('http') == 0
|
121
|
-
|
121
|
+
text = opts[:href]
|
122
|
+
text = text[0, text.length - 6] + text[-5,3].replace("...") + text[-2..-1]
|
123
|
+
"<a href=\"#{escape_attribute href_with_proto}\">#{escape_attribute text}</a>"
|
122
124
|
end
|
123
125
|
|
124
126
|
def image(opts)
|
data/lib/redcloth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parity-RedCloth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-03-
|
14
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -203,7 +203,7 @@ rubyforge_project: redcloth
|
|
203
203
|
rubygems_version: 2.2.1
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
|
-
summary: RedCloth-4.2.
|
206
|
+
summary: RedCloth-4.2.10
|
207
207
|
test_files:
|
208
208
|
- spec/benchmark_spec.rb
|
209
209
|
- spec/custom_tags_spec.rb
|