polytexnic 1.10.4 → 1.10.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: becee0a264fd8f1c6e60c6eb2fe347b369379d1ff65fe3d750f6cb8cc1fe41af
4
- data.tar.gz: cdbd9839380bbffc7bcc4575402448eaf0af0ad079cddf068f20f4698492d073
3
+ metadata.gz: 0a13a986dfc0da7c33be1131ffca679537c403b8c366c0fcea0dc9e5c9897673
4
+ data.tar.gz: f007d72b90fda1da45719fc0a7f67ef1772898c089ca071b6cd63349f83ab99e
5
5
  SHA512:
6
- metadata.gz: c298160d71a2777aeab70cd791e7fdbcab57ce3315c4fa5510b9d74c29cbe4382a4a9b5f0eadf2b93d189e82c70d12cd5e16a2214bbcf4b04f02e3698e5e38e5
7
- data.tar.gz: 6571de55107bcb9905287a9a0bd6b027ae3cd3c9346ff122a8767489c13ae557699c25ed9b9830f90af2a5a4dd8e369e8eadcb0b5ed094226cb7623fbe01c511
6
+ metadata.gz: c0fa014e3c6c225534d3bbf9588c6f5b9de13d35521be4e436eb704f61ebd6788982b06b2d11003ed75f827fb38f9967b77aaf7b44359ea5741439cf9f15dfb2
7
+ data.tar.gz: 1a157c55cacf92b28ab9e009df87a5e3c96715f197071ba9101d0f7085c067702f30c344e2f0177dede4f813b68e0f2e952da19f484cd9893878489215c72c93
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polytexnic (1.10.4)
4
+ polytexnic (1.10.6)
5
5
  json (= 2.3.1)
6
6
  kramdown (= 2.4.0)
7
- msgpack (= 1.2.10)
7
+ msgpack (= 1.7.2)
8
8
  nokogiri (= 1.15.2)
9
9
  pygments.rb (~> 2.3.1)
10
10
 
@@ -18,12 +18,12 @@ GEM
18
18
  simplecov (>= 0.7)
19
19
  term-ansicolor (= 1.2.2)
20
20
  thor (= 0.18.1)
21
- diff-lcs (1.5.0)
21
+ diff-lcs (1.5.1)
22
22
  docile (1.1.5)
23
- ffi (1.15.5)
23
+ ffi (1.16.3)
24
24
  formatador (1.1.0)
25
25
  growl (1.0.3)
26
- guard (2.18.0)
26
+ guard (2.18.1)
27
27
  formatador (>= 0.2.4)
28
28
  listen (>= 2.7, < 4.0)
29
29
  lumberjack (>= 1.0.12, < 2.0)
@@ -40,15 +40,15 @@ GEM
40
40
  json (2.3.1)
41
41
  kramdown (2.4.0)
42
42
  rexml
43
- listen (3.8.0)
43
+ listen (3.9.0)
44
44
  rb-fsevent (~> 0.10, >= 0.10.3)
45
45
  rb-inotify (~> 0.9, >= 0.9.10)
46
- lumberjack (1.2.8)
46
+ lumberjack (1.2.10)
47
47
  method_source (1.0.0)
48
- mime-types (3.4.1)
48
+ mime-types (3.5.2)
49
49
  mime-types-data (~> 3.2015)
50
- mime-types-data (3.2023.0218.1)
51
- msgpack (1.2.10)
50
+ mime-types-data (3.2024.0305)
51
+ msgpack (1.7.2)
52
52
  multi_json (1.15.0)
53
53
  nenv (0.3.0)
54
54
  nokogiri (1.15.2-arm64-darwin)
@@ -61,7 +61,7 @@ GEM
61
61
  method_source (~> 1.0)
62
62
  pygments.rb (2.3.1)
63
63
  racc (1.7.3)
64
- rake (13.0.6)
64
+ rake (13.1.0)
65
65
  rb-fsevent (0.11.2)
66
66
  rb-inotify (0.10.1)
67
67
  ffi (~> 1.0)
@@ -150,7 +150,7 @@ module Polytexnic
150
150
  |
151
151
  ~\\eqref\{.*?\} # eq reference with a tie
152
152
  |
153
- \\[^\s]+\{.*?\} # command with one arg
153
+ \\[^\s(]+\{.*?\} # command with one arg
154
154
  |
155
155
  \\\w+ # normal command
156
156
  |
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "1.10.4"
2
+ VERSION = "1.10.6"
3
3
  end
data/polytexnic.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.add_dependency 'nokogiri', '1.15.2'
22
22
  gem.add_dependency 'pygments.rb', '~> 2.3.1'
23
- gem.add_dependency 'msgpack', '1.2.10'
23
+ gem.add_dependency 'msgpack', '1.7.2'
24
24
  gem.add_dependency 'kramdown', '2.4.0'
25
25
  gem.add_dependency 'json', '2.3.1'
26
26
 
@@ -1,3 +1,3 @@
1
1
  This is some inline math: $\int_\Omega d\omega = \int_{\partial\Omega} \omega$ (the general form of Stokes's Theorem). Here's some more: \( \varphi^2 = \varphi + 1 \).
2
2
 
3
- Our main strategy for producing HTML is to pass it through as-is and let MathJax handle the rendering.
3
+ Our main strategy for producing HTML is to pass it through as-is and let MathJax handle the rendering.
@@ -248,16 +248,21 @@ Chapter~\ref{cha:one}
248
248
  it { should include 'Chapter~\ref{cha:one}' }
249
249
  end
250
250
 
251
- context "an inline equation" do
251
+ context "inline math" do
252
252
  let(:source) { '\( x \) is a variable' }
253
253
  it { should include source }
254
254
  end
255
255
 
256
- context "an inline equation with a newline" do
256
+ context "inline math with a newline" do
257
257
  let(:source) { '\( x' + "\n" + ' + y \) is a sum' }
258
258
  it { should include source }
259
259
  end
260
260
 
261
+ context "an inline math with no spaces" do
262
+ let(:source) { '\(\mathbb{R}\)'}
263
+ it { should include source }
264
+ end
265
+
261
266
  context "a centered equation" do
262
267
  let(:source) { '\[ x^2 - 2 = 0 \] is an equation' }
263
268
  it { should resemble source }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polytexnic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.4
4
+ version: 1.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-16 00:00:00.000000000 Z
12
+ date: 2024-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 1.2.10
48
+ version: 1.7.2
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 1.2.10
55
+ version: 1.7.2
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: kramdown
58
58
  requirement: !ruby/object:Gem::Requirement