rmake-notation 0.0.9 → 0.0.10

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: c1a9a72a7dcbfce78f7d421339a91f99dd73bbb1
4
- data.tar.gz: b3514f69509d4d3e660d5a163476c3d951599f1d
3
+ metadata.gz: cf74795e1aef32ce832edc67e8d859b3c43554ef
4
+ data.tar.gz: 884116e5dbce736f4104d202395ad061275a8d76
5
5
  SHA512:
6
- metadata.gz: 1a89377329a9b122a3ff6a91c7ad55e806a58d4b448e53b8ac996b34622e0943066827ce40c86dd4fde4073a1edc61408dd8f9a47aa66c945b3ae1db2ee770bd
7
- data.tar.gz: b69eb11c282d5d5b1f184627561c57d91f50ebe7ac9d65f3b683d4bd717ad23d31fa35854d8371c49340631b94d5e20eb199c13566c6558e4d7e560d77105aba
6
+ metadata.gz: 45b0ab45b152d10b413e245453dd55c88f332b6c8e9ed6cfe0050fa9c545d9df9bc1a38c6e26d4b538823b57656430cf6c12f6dd84d133a67a4f1f6b3ef8c5d2
7
+ data.tar.gz: da0dfa926e2aa0f5560e34cbe36bdbd1fd9932d456b73d459729938fd3f9673b4969af160afe187cabbda24890d755ca3df9e1a7dd2c9d2c82fef4137d33f296
@@ -1,5 +1,5 @@
1
1
  module Rmake
2
2
  module Notation
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
@@ -284,7 +284,10 @@ EOS
284
284
  result = "<a href=\"##{link}\">" + title + "</a>"
285
285
 
286
286
  when "strike"
287
- text = parsed_block[1] ? parsed_block[1..parsed_block.length-1] : nil
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmake-notation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rmake Developers