slack_markdown 0.1.1 → 0.1.2
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: 385190d45daa3e0d0ae2431cbf31c2af5302277e
|
4
|
+
data.tar.gz: 2bf17bd174cf64b47b4dd9390587ce13aa7f5e96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7872bdebd80f6289d13405d3109baaf7f66b9c2192d7ac927db02d91b8042cd4416ac743652d6ee8330bf5e93c62b46895d3868034da620cd692af9409f5701b
|
7
|
+
data.tar.gz: 30a91e6afcb8538f106f6a8ad57cb4280a5640036d8c82265cc41c97017e3c211c1268419568575b95694949d84da722acb8a4f44c15b2af137b17ba261cbad9
|
@@ -13,7 +13,7 @@ module SlackMarkdown
|
|
13
13
|
content = node.to_html
|
14
14
|
next if has_ancestor?(node, ignored_ancestor_tags)
|
15
15
|
next unless content.include?('>>>')
|
16
|
-
html =
|
16
|
+
html = multiple_quote_filter(content)
|
17
17
|
next if html == content
|
18
18
|
node.replace(html)
|
19
19
|
end
|
@@ -22,8 +22,8 @@ module SlackMarkdown
|
|
22
22
|
|
23
23
|
private
|
24
24
|
|
25
|
-
def
|
26
|
-
lines = text.split(/^>>>
|
25
|
+
def multiple_quote_filter(text)
|
26
|
+
lines = text.split(/^>>>(?:\s|\n)*/, 2)
|
27
27
|
if lines.size < 2
|
28
28
|
text
|
29
29
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack_markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ru/MuckRu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-pipeline
|