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: 8bc05ed306d79f95ae47bf1b74ff899b94eabf21
4
- data.tar.gz: 12499f808da32836de385da74a84eb0cc8cb34b5
3
+ metadata.gz: 385190d45daa3e0d0ae2431cbf31c2af5302277e
4
+ data.tar.gz: 2bf17bd174cf64b47b4dd9390587ce13aa7f5e96
5
5
  SHA512:
6
- metadata.gz: bed077b3bff07835452944dde47fa1094c2b7bdd27973157ccf2f18be0fe970bbe4d14ecb42eee867e88da105f5689c96669b7a26ee26e848ac7084a0c377ec4
7
- data.tar.gz: 03d585e245b53ccb1ff59e2008ea4520387ae57a23c31a91e8db437ec3c0f297f5895adcc8277aa354d561e2b79e94791198ad8f33834b3146e396e9f6bf6371
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 = quote_filter(content)
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 quote_filter(text)
26
- lines = text.split(/^>>>/, 2)
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
@@ -1,3 +1,3 @@
1
1
  module SlackMarkdown
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.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-25 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline