card-mod-markdown 0.15.4 → 0.15.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/set/type/markdown.rb +7 -1
  3. metadata +21 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2773343f6c671b213045a0931280f86f92823dabde4d491222f5937b7952415
4
- data.tar.gz: 7e6ebb65b666fdf91cdf96a8f59f00311407f7a4b880ef949534f003e4cdd8ed
3
+ metadata.gz: c463350a501d4d47ec93e3be21b9c7daf27cba5197b3dd10eb3ddfcbf1078863
4
+ data.tar.gz: 202d58d5c734fde24a7a8215f54d93bdc9ebba6dbb42425d7943d72d2829cba5
5
5
  SHA512:
6
- metadata.gz: adab44ab4ca8cba282ebf09a8383c972d1ed9b1243520babb213c9e1e377f3992fb84c1be940c9e26acc534daa13f24abfa5f15c8cb685950763ecf6b876378c
7
- data.tar.gz: 480d46fa630912621103f9c2a7adbe2d3ab0bca520f613f974fa19f004ea9bbec961e5c75a8262715770f10cc884505a73a6244f53fde217fb899a81248e45c0
6
+ metadata.gz: 7ebe2f3cd4d307d3facfb021abc97f0d256fae0b220c780f4ac40810689f8d201b320b6f63e6f6de290adae1bdf9dd9e4a6deca3ce901727467769b99d39f0e0
7
+ data.tar.gz: 3aea43e3e6eb7843feeb1be223bb7ce20d11b20656a3b7cd7750a2ac29b0427460f784108f25567300f2beb5c94580f9c85ed1b6ab24e282ef1e0673e1c5ccd8
data/set/type/markdown.rb CHANGED
@@ -1,9 +1,15 @@
1
1
  require "kramdown"
2
+ require "kramdown-syntax-coderay"
2
3
 
3
4
  format :html do
4
5
  view :core do
5
6
  safe_process_content do |content|
6
- Kramdown::Document.new(content).to_html
7
+ Kramdown::Document.new(content,
8
+ syntax_highlighter: :coderay,
9
+ syntax_highlighter_opts: {
10
+ line_numbers: false,
11
+ default_lang: :ruby
12
+ }).to_html
7
13
  end
8
14
  end
9
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.4
4
+ version: 0.15.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-04-03 00:00:00.000000000 Z
13
+ date: 2023-05-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,28 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.105.4
21
+ version: 1.105.6
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.105.4
28
+ version: 1.105.6
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: kramdown
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '2.3'
35
+ version: '2.4'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '2.3'
42
+ version: '2.4'
43
+ - !ruby/object:Gem::Dependency
44
+ name: kramdown-syntax-coderay
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '1.0'
43
57
  description: use markdown in decko card content
44
58
  email:
45
59
  - info@decko.org
@@ -77,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
91
  - !ruby/object:Gem::Version
78
92
  version: '0'
79
93
  requirements: []
80
- rubygems_version: 3.3.11
94
+ rubygems_version: 3.2.33
81
95
  signing_key:
82
96
  specification_version: 4
83
97
  summary: markdown support for decko