jekyll-katex 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97204d37eda949470ffafeaedfc8341aabf81615f48f97a8ac0f5d4c0dd4fa7c
4
- data.tar.gz: bffedf65d7f5fd45b8ed2d19edb1f6da9c33bc2b5efc3782d75edd541797601f
3
+ metadata.gz: 3f8555cfba1bff00546aa0efe7d14400dceaa5ef15ef213b711b931be779e9e6
4
+ data.tar.gz: d79b83fce0fce8b81493890c811b6c10963f104b561d6601649741a15ea54fbd
5
5
  SHA512:
6
- metadata.gz: 3e86b908ba3bc9695603facd44919aaf8844b58a5554b3577c94b1728364fafd50cc6206c5c870d26c5f4c32fc5cc3dbab27222ab0c34b994dfc4b7c1b188b7a
7
- data.tar.gz: 39309615a67795675f4dc9e3ab4138d1a9822eeafb9d892a24ee4ff0c072e0b556722c4e4acfbb33197f6b976527550881dea40e09ea65f34f1e04756712ae93
6
+ metadata.gz: 9ef2b92701cfe49965afc1bc40ab6df000dbf20d51454f3d7834fabd9da5d73f1622c0c432d54db1ba26e08963f02ff2229d1c7a1888e0bf7098b2d11b1f96fc
7
+ data.tar.gz: 2307ffc5f8c2b24d46ed3dd180c0348fb17f2da9b5ff5122536d43154472356134573785ae6cef3d1495bac8557bcf7ce7c89cfe1bd7ad2b0dacf4c3e7f2ab78
@@ -16,16 +16,14 @@ module Jekyll
16
16
  }
17
17
  }.freeze
18
18
 
19
- JEKYLL_CONFIG = Jekyll.configuration['katex']
19
+ JEKYLL_CONFIG = Jekyll.configuration['katex'] || {}
20
20
 
21
21
  def self.js_path
22
22
  js_filename = JEKYLL_CONFIG['js_filename'] || CONFIG_DEFAULTS[:js_filename]
23
23
  js_path = JEKYLL_CONFIG['js_path'] || CONFIG_DEFAULTS[:js_path]
24
24
 
25
25
  katex_js = Dir.glob("#{js_path}/**/#{js_filename}").first
26
- if katex_js.nil?
27
- raise RuntimeError, 'Could not find KaTeX javascript file using provided configuration.'
28
- end
26
+ raise 'Could not find KaTeX javascript file using provided configuration.' if katex_js.nil?
29
27
  Jekyll.logger.info LOG_TOPIC, "Found KaTeX js at: #{katex_js}"
30
28
  katex_js
31
29
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Katex
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -22,7 +22,7 @@ module Jekyll
22
22
 
23
23
  def render(context)
24
24
  latex_source = super
25
- rendering_options = Jekyll::Katex::Configuration.global_rendering_options.merge({ displayMode: @display })
25
+ rendering_options = Jekyll::Katex::Configuration.global_rendering_options.merge(displayMode: @display)
26
26
  KATEX.call('katex.renderToString', latex_source, rendering_options)
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-katex
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
  - Jerry Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-06 00:00:00.000000000 Z
11
+ date: 2018-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs