slackdown 0.2.0 → 0.2.1

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: 499a5d5c98091cf1fb577d6591bec17e43e53572
4
- data.tar.gz: 426aa1d4a1b48092407c02dd4455b8fb86bd7add
3
+ metadata.gz: d463a431b887592246e0d0c4582c5205db7f3706
4
+ data.tar.gz: cd45ab242eeff87aa84e402ae19f7219aad8a8d0
5
5
  SHA512:
6
- metadata.gz: 10543ed1151084a83cab220a941cd47431b84abe8b3a1a23f67d249b9b858ba1aed870686e89fd2c868c82dabd49e3d07c881aadf195eeeb16f087495c83c8bb
7
- data.tar.gz: 4190b88e6ec41752821920143262048fd59c4459d017b29ae8fc56049e74bb067cd48808268103d566466b54e47a90b153da8c91613773b7028991110857cbea
6
+ metadata.gz: 8c882cb510b79566ac588fedd6c461bca2cbe5aab36fd6f316593fdfe67fc2e4a19ecd316296226459abc564078b8c5f4d9969b596b2c6ef333d78ef18389147
7
+ data.tar.gz: a853d4bcb49500b07459dcf13c61d7a64f8add172f15ef3d491834c2921a79d048d8061fcdfe70f0455344eb31ab39a3bc7247d39bb12705ff5cfdbf72aa0b23
@@ -66,7 +66,7 @@ module Kramdown
66
66
  end
67
67
 
68
68
  def convert_codeblock(el)
69
- "```\n#{el.value}```"
69
+ "```\n#{el.value}```\n\n"
70
70
  end
71
71
 
72
72
  def convert_a(el)
@@ -119,7 +119,7 @@ module Kramdown
119
119
  end
120
120
 
121
121
  def convert_entity(el)
122
- ENTITIES.fetch(el.options[:original])
122
+ el.value.char
123
123
  end
124
124
 
125
125
 
@@ -172,12 +172,6 @@ module Kramdown
172
172
  laquo: "«",
173
173
  raquo: "»" }.freeze
174
174
 
175
- ENTITIES = {
176
- "&lt;" => "<",
177
- "&gt;" => ">",
178
- "&amp;" => "&",
179
- "&quot;" => "\"" }.freeze
180
-
181
175
  end
182
176
  end
183
177
  end
@@ -5,7 +5,7 @@ require "kramdown/converter/slack"
5
5
  module Slackdown
6
6
 
7
7
  def self.convert(markdown, options={})
8
- Kramdown::Document.new(markdown, options).to_slack
8
+ Kramdown::Document.new(markdown, options.merge(input: "GFM")).to_slack
9
9
  end
10
10
 
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Slackdown
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Lail