polytexnic 1.10.4 → 1.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/polytexnic/preprocessors/polytex.rb +1 -1
- data/lib/polytexnic/version.rb +1 -1
- data/spec/fixtures/inline_math.tex +1 -1
- data/spec/markdown_to_polytex_spec.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537f908aaaed4b7ffdd66a1af25c647b2f09bc01d66fdcad47335b47f53795b7
|
4
|
+
data.tar.gz: 5d29427b13c4896326c30eb27461588ce57e6b7e7460cd7a1b2ef513568a469f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa43d394b64dd3b75a80e78d1ae179f355d92b46e45e6440b723fd43ab86f76fe87404d2003915eddf4f76b7af37dea5bbdf5e533361db1f7f6ab9dc78286c99
|
7
|
+
data.tar.gz: f912d164306c4b0b4f36462fc96de57f719ace3b391e5906b19df581e22801d646aea3b0e7dc65a363db0d576da3fa03dfc55ea7945114a0730504fdee20b999
|
data/Gemfile.lock
CHANGED
data/lib/polytexnic/version.rb
CHANGED
@@ -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 "
|
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 "
|
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
|
+
version: 1.10.5
|
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:
|
12
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|