rmake-notation 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rmake-notation/version.rb +1 -1
- data/lib/rmake-notation.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf74795e1aef32ce832edc67e8d859b3c43554ef
|
4
|
+
data.tar.gz: 884116e5dbce736f4104d202395ad061275a8d76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45b0ab45b152d10b413e245453dd55c88f332b6c8e9ed6cfe0050fa9c545d9df9bc1a38c6e26d4b538823b57656430cf6c12f6dd84d133a67a4f1f6b3ef8c5d2
|
7
|
+
data.tar.gz: da0dfa926e2aa0f5560e34cbe36bdbd1fd9932d456b73d459729938fd3f9673b4969af160afe187cabbda24890d755ca3df9e1a7dd2c9d2c82fef4137d33f296
|
data/lib/rmake-notation.rb
CHANGED
@@ -284,7 +284,10 @@ EOS
|
|
284
284
|
result = "<a href=\"##{link}\">" + title + "</a>"
|
285
285
|
|
286
286
|
when "strike"
|
287
|
-
|
287
|
+
text_data = parsed_block[1..parsed_block.length-1]
|
288
|
+
text_data = text_data.is_a?(Array) ? text_data.join(' ') : text_data.to_s
|
289
|
+
|
290
|
+
text = !text_data.blank? ? text_data : nil
|
288
291
|
result = "<span style=\"text-decoration:line-through;\">#{text}</span>"
|
289
292
|
|
290
293
|
when "bold"
|