katex 0.4.0.beta → 0.4.1.beta
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/README.md +2 -2
- data/lib/katex.rb +3 -1
- data/lib/katex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0e36923af6c602d4b2ba213f7bc85004f0eb201
|
|
4
|
+
data.tar.gz: 963690dc20b6f06d9a8d41235b6511f41f2dc567
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec241889a848b1a74d91966d0e07f4eb609cefcd4d51d85ae061bdb521c27e6f9f06135a9d9cbea9720ad6a5d326bf95e84b217973cba8c5525547dce9050751
|
|
7
|
+
data.tar.gz: 5389562d3e5e5cb79a79ca94bbfbb1b316bd2d89d7e4b7fb5bdd98cb73a16ecff8b2865493b83151e458ac660a323ff4f2d7b66cddf931d0040cec9eeaa49b3a
|
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@ It uses [ExecJS] under the hood.
|
|
|
8
8
|
Add this line to your application's Gemfile:
|
|
9
9
|
|
|
10
10
|
```ruby
|
|
11
|
-
gem 'katex', '~> 0.4.
|
|
11
|
+
gem 'katex', '~> 0.4.1.beta'
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
And then execute:
|
|
@@ -86,7 +86,7 @@ and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
|
86
86
|
## Contributing
|
|
87
87
|
|
|
88
88
|
Bug reports and pull requests are welcome on GitHub at
|
|
89
|
-
https://github.com/glebm/katex.
|
|
89
|
+
https://github.com/glebm/katex-ruby.
|
|
90
90
|
|
|
91
91
|
This project is intended to be a safe, welcoming space for collaboration,
|
|
92
92
|
and contributors are expected to adhere to the
|
data/lib/katex.rb
CHANGED
|
@@ -44,7 +44,9 @@ module Katex
|
|
|
44
44
|
|
|
45
45
|
def katex_context
|
|
46
46
|
@load_context_mutex.synchronize do
|
|
47
|
-
|
|
47
|
+
# Use `ExecJS::Runtimes.autodetect.compile` instead of `ExecJS.compile`
|
|
48
|
+
# to avoid forcing the global runtime onto the user.
|
|
49
|
+
@context ||= ExecJS::Runtimes.autodetect.compile File.read katex_js_path
|
|
48
50
|
end
|
|
49
51
|
end
|
|
50
52
|
|
data/lib/katex/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: katex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1.beta
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gleb Mazovetskiy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: execjs
|