jekyll-mathjax-csp 1.2.0 → 1.3.0
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-mathjax-csp.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cecbc378337e50b09343bceca401083953e4e67c50a27cf7b07964d4938872de
|
|
4
|
+
data.tar.gz: 75341897be7412390ea24f353ab0818804542bce18eca093f64c951a8d498405
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c5f51537089fe99a8ddd502993749b4c2b6611a1f70172f025d4d28c1fe8749ff7d3aab28afd62bd5cac3656f480f3a1c570fe697a90abfa98ca830b1d40e48
|
|
7
|
+
data.tar.gz: 38d21ddd6fbebae122a887feb9aa806fab0b0bdbecdafdd2e2a510046b6b0e62482895736244356d16fcefcf1631bac9f5926968975616865d3cd1f970383e8d
|
data/lib/jekyll-mathjax-csp.rb
CHANGED
|
@@ -38,7 +38,7 @@ module Jekyll
|
|
|
38
38
|
# Run Jekyll documents through mathjax-node-page, transform style attributes into inline style
|
|
39
39
|
# tags and compute their hashes
|
|
40
40
|
class Mathifier
|
|
41
|
-
MATH_TAG_REGEX =
|
|
41
|
+
MATH_TAG_REGEX = /(<script[^>]*type="math\/tex|\\\[.*\\\]|\\\(.*\\\))/i
|
|
42
42
|
|
|
43
43
|
FIELDS = {
|
|
44
44
|
"format" => "--format",
|
|
@@ -100,9 +100,9 @@ module Jekyll
|
|
|
100
100
|
def run_mjpage(config, output)
|
|
101
101
|
mathified = ""
|
|
102
102
|
exit_status = 0
|
|
103
|
-
|
|
103
|
+
|
|
104
104
|
command = "node_modules/mathjax-node-page/bin/mjpage"
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
FIELDS.each do |name, flag|
|
|
107
107
|
unless config[name].nil?
|
|
108
108
|
command << " " << flag << " " << config[name].to_s
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-mathjax-csp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabian Henneke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: html-pipeline
|
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
73
|
version: '0'
|
|
74
74
|
requirements: []
|
|
75
|
-
rubygems_version: 3.0.
|
|
75
|
+
rubygems_version: 3.0.3
|
|
76
76
|
signing_key:
|
|
77
77
|
specification_version: 4
|
|
78
78
|
summary: Server-side MathJax & CSP for Jekyll
|