card-mod-markdown 0.15.5 → 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: e5466f9a09f4389848de2eb88360474ed4e3895d0139abdc5b9bb8589e832473
4
- data.tar.gz: 382f266f008da51a021945c91abf9ea8ed286f0eae97ea9a7218531d248fa446
3
+ metadata.gz: c463350a501d4d47ec93e3be21b9c7daf27cba5197b3dd10eb3ddfcbf1078863
4
+ data.tar.gz: 202d58d5c734fde24a7a8215f54d93bdc9ebba6dbb42425d7943d72d2829cba5
5
5
  SHA512:
6
- metadata.gz: db42331f554f88318e1341aa12039d3e181b7e584239a1d3bc863bf6189159dda9c493b3b2ae1f73d3385a119049bd0bbdd6431bc7abba0bfb1a80fe5b712e0b
7
- data.tar.gz: db8a024a93c3314b5825fd7dd92140cdccf2d1e12586d9a77fcf38c4ccb96af213c60eb5f9566a7f8779486790811274163186b9f65a3fa2618a131b44584cfd
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.5
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-20 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.5
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.5
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