jekyll-katex 0.4.0 → 0.4.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: c410cfa94938605a01daa474720deb2a3969eb471eb75133ad699a97fe61783d
4
- data.tar.gz: 3c071fa7d53acada582103c6d1b904e8433842311961c3e087d89975154e523c
3
+ metadata.gz: bfaf48806d02936f8e41c8f113852d1e73cd813d9d3d1fa81e4afdee08543c4b
4
+ data.tar.gz: eb31a29b5eb26ee6c307913d522aaaca34c60c89b1b05bb33808c3f40f4c9cd6
5
5
  SHA512:
6
- metadata.gz: 7eee0d12b0a47c90a4fd03db36c01b04dbaf3ba7be809d4a88c515534c5321ab0d534dfefa35e344c84320df32bcb492dc1eb3216d55b27fa8e7fcc99c15422a
7
- data.tar.gz: 221048eb821460fef79df6525b53e105eef00a7da9f659e984b35308f5dbb1ad99fb7d107831533b6a2caea90c1932094bf1a210c9bf68731f80c87cc949ab5d
6
+ metadata.gz: 16daeeef99e8d95d93acde0ce62699e56a9d95aa7170817b14408913e99074f272d2634edfa77a420ebd74a6745fcc74262efb5052e6f74fa0f291dd04ceca88
7
+ data.tar.gz: 9f9922114ed9fcdf69523d7f0b1311f4051de7202bfbc531f335641f5f3925bfe54d2a2e23e23317c127b10393634b6fbcddb04a77f89f5dc8156b3d7f0aad5f
@@ -25,14 +25,17 @@ module Jekyll
25
25
 
26
26
  katex_js = Dir.glob(File.join(js_path, '**', js_filename)).first
27
27
  raise 'Could not find KaTeX javascript file using provided configuration.' if katex_js.nil?
28
+
28
29
  Jekyll.logger.info LOG_TOPIC, "Found KaTeX js at: #{katex_js}"
29
30
  katex_js
30
31
  end
31
32
 
32
33
  def self.global_rendering_options
33
34
  {
34
- throwOnError: JEKYLL_CONFIG['rendering_options']['throw_error'] || CONFIG_DEFAULTS[:rendering_options][:throw_error],
35
- errorColor: JEKYLL_CONFIG['rendering_options']['error_color'] || CONFIG_DEFAULTS[:rendering_options][:error_color]
35
+ throwOnError: JEKYLL_CONFIG['rendering_options']['throw_error'] ||
36
+ CONFIG_DEFAULTS[:rendering_options][:throw_error],
37
+ errorColor: JEKYLL_CONFIG['rendering_options']['error_color'] ||
38
+ CONFIG_DEFAULTS[:rendering_options][:error_color]
36
39
  }
37
40
  end
38
41
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Katex
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
@@ -17,7 +17,7 @@ module Jekyll
17
17
  class KatexMathMode < Liquid::Block
18
18
  LOG_TOPIC = 'KatexMathMode:'
19
19
  KATEX ||= Jekyll::Katex::KATEX_JS
20
- LATEX_TOKEN_PATTERN = /(?<!\\)([$]{2}|[$]{1})(.+?)(?<!\\)\1/m
20
+ LATEX_TOKEN_PATTERN = /(?<!\\)([$]{2}|[$]{1})(.+?)(?<!\\)\1/m.freeze
21
21
 
22
22
  def initialize(tag_name, markup, tokens)
23
23
  super
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-katex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Lin