jekyll-mathjax-csp 1.2.0 → 1.3.0

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/lib/jekyll-mathjax-csp.rb +3 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8218e17367dcec594fbdd371b586f9e324e8eaf50c91a99983a9b07a35c74983
4
- data.tar.gz: f92ddc744f4ca19c6f9f472f5476c57ee837a8180daf3d8add1901b3a89f3316
3
+ metadata.gz: cecbc378337e50b09343bceca401083953e4e67c50a27cf7b07964d4938872de
4
+ data.tar.gz: 75341897be7412390ea24f353ab0818804542bce18eca093f64c951a8d498405
5
5
  SHA512:
6
- metadata.gz: d9a66565deecda9111622a1c8f07a2ad8152170a019f9e901c66429eae4a8e9fc6a0a7645c957dd04c147d0a0d88ec526ed1180e03c4216d222395ed14f519e4
7
- data.tar.gz: b90b10604795aa78599e9c2dc4506d736b94c55f82b6c650be01f8ade4734910d52afc1e5b914371dbc359416923a46ee09381b0a0471884bdf8d7e8a3fa5c04
6
+ metadata.gz: 4c5f51537089fe99a8ddd502993749b4c2b6611a1f70172f025d4d28c1fe8749ff7d3aab28afd62bd5cac3656f480f3a1c570fe697a90abfa98ca830b1d40e48
7
+ data.tar.gz: 38d21ddd6fbebae122a887feb9aa806fab0b0bdbecdafdd2e2a510046b6b0e62482895736244356d16fcefcf1631bac9f5926968975616865d3cd1f970383e8d
@@ -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 = /<script[^>]*type="math\/tex/i
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.2.0
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-01-18 00:00:00.000000000 Z
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.1
75
+ rubygems_version: 3.0.3
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Server-side MathJax & CSP for Jekyll