mathjax-renderer 0.0.8 → 0.0.9
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/mathjax_renderer/renderer.rb +6 -6
- data/lib/mathjax_renderer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e7009087edb239be72885a8854a71e5634ae2a0
|
|
4
|
+
data.tar.gz: 48ca3a235b74391a6792b79a46b7919ce96fa1e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ecceadd2086d0a5eecfb07389da11ef7884f747b413a8222303e8b884df5a91d71f14d0bfff2a95273fb2553588f77dc585cf461b2c37f832976921c56a0ba16
|
|
7
|
+
data.tar.gz: cc373a483980012d20291f73ea8ff13a329b8e41de44aa1f16c3565827bee0f35ad342002fc416eb12a54fb07d855becfaf4bbde8cf4da13b5da8806cf048c6b
|
|
@@ -42,7 +42,7 @@ module Mathjax_Renderer
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
Timeout.timeout(5) do
|
|
45
|
-
sleep 0.
|
|
45
|
+
sleep 0.2 until mathjax_ready?(page)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
unless @image_base_url.nil?
|
|
@@ -157,14 +157,14 @@ module Mathjax_Renderer
|
|
|
157
157
|
showMathMenu:false
|
|
158
158
|
});
|
|
159
159
|
</script>
|
|
160
|
-
<script type='text/javascript'
|
|
161
|
-
src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
|
|
162
160
|
<style>body{display: flex;justify-content: center;}
|
|
163
161
|
#{extra_style}
|
|
164
162
|
.MathJax{
|
|
165
163
|
left: #{padding}px;
|
|
166
164
|
top: #{padding}px;
|
|
167
165
|
}</style>
|
|
166
|
+
<script type='text/javascript'
|
|
167
|
+
src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
|
|
168
168
|
</head><body>#{content}</body></html>"
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -179,9 +179,9 @@ module Mathjax_Renderer
|
|
|
179
179
|
:Logger => WEBrick::Log::new('/dev/null', 7)
|
|
180
180
|
)
|
|
181
181
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
server.mount_proc "/index.html" do |_, res|
|
|
183
|
+
res.body = "OK"
|
|
184
|
+
end
|
|
185
185
|
|
|
186
186
|
begin
|
|
187
187
|
server.start
|