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 +4 -4
- data/lib/jekyll-katex/configuration.rb +5 -2
- data/lib/jekyll-katex/version.rb +1 -1
- data/lib/jekyll/tags/katex_math_mode.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfaf48806d02936f8e41c8f113852d1e73cd813d9d3d1fa81e4afdee08543c4b
|
|
4
|
+
data.tar.gz: eb31a29b5eb26ee6c307913d522aaaca34c60c89b1b05bb33808c3f40f4c9cd6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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'] ||
|
|
35
|
-
|
|
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
|
data/lib/jekyll-katex/version.rb
CHANGED
|
@@ -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
|