sskatex 0.9.30 → 0.9.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{COPYING → LICENSE.txt} +3 -4
- data/README.md +9 -0
- data/bin/sskatex +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0028406fae14c0c8ba883137363d1beede5099a
|
4
|
+
data.tar.gz: bbe5394c1f1e18d5fb8e551611f3f872131464f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f43da42ec993199b6f616611a01d982fe37d286cb3e3500137bb8eeec05ec7cbb57acc1e381c7ee0c39f5d190d592c378c437ce3dfa4a3d7058aaf28b9372c3
|
7
|
+
data.tar.gz: f8b3f0e0110ce131c818ea10aff1438b41f057dbde7676dc7191a2d2d003a39d15d6cc0718579fd15a1bda512648e90bf61c00b7e4ca7c1f160373167e632bad
|
data/{COPYING → LICENSE.txt}
RENAMED
@@ -1,7 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
Copyright (C) 2017 Christian Cornelssen <ccorn@1tein.de>
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (C) 2017 Christian Cornelssen <ccorn@1tein.de> on SsKaTeX
|
5
4
|
|
6
5
|
Permission is hereby granted, free of charge, to any person obtaining a
|
7
6
|
copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -49,9 +49,18 @@ implies that execution of arbitrary Javascript code is possible. Specifically,
|
|
49
49
|
options with `js` in their names should be accepted from trusted sources only.
|
50
50
|
Applications using SsKaTeX need to check this.
|
51
51
|
|
52
|
+
Also included is a command-line interface to the SsKaTeX gem: A script called
|
53
|
+
`sskatex`. It demonstrates basic functionality and options of the SsKaTeX gem.
|
54
|
+
It only renders one TeX math expression per invocation; try `sskatex -h` for
|
55
|
+
more information. If you want to see the SsKaTeX gem used more efficiently,
|
56
|
+
look at [kramdown] v1.16 or later which can use SsKaTeX as a math engine. But
|
57
|
+
do *not* make SsKaTeX available where kramdown is exposed to untrusted users;
|
58
|
+
that would be insecure unless that process is sandboxed.
|
59
|
+
|
52
60
|
[duktape.rb]: https://github.com/judofyr/duktape.rb#duktaperb
|
53
61
|
[ExecJS]: https://github.com/rails/execjs#execjs
|
54
62
|
[KaTeX]: https://khan.github.io/KaTeX/
|
63
|
+
[kramdown]: https://github.com/gettalong/kramdown
|
55
64
|
[mathjax-node-cli]: https://github.com/mathjax/mathjax-node-cli
|
56
65
|
[Node.js]: https://nodejs.org/
|
57
66
|
[therubyracer]: https://github.com/cowboyd/therubyracer#therubyracer
|
data/bin/sskatex
CHANGED
@@ -78,7 +78,7 @@ if ARGV.size > 2
|
|
78
78
|
exit 2
|
79
79
|
end
|
80
80
|
|
81
|
-
cfg_opts = JSON.parse(YAML.
|
81
|
+
cfg_opts = JSON.parse(YAML.load_file(config_file, safe: true).to_json,
|
82
82
|
symbolize_names: true) if config_file
|
83
83
|
options = cfg_opts.merge(cmd_opts, &merge_dicts)
|
84
84
|
loglevel = options[:debug] ? :debug : options[:verbose] ? :verbose : nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sskatex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Cornelssen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|
@@ -64,7 +64,7 @@ executables:
|
|
64
64
|
extensions: []
|
65
65
|
extra_rdoc_files: []
|
66
66
|
files:
|
67
|
-
-
|
67
|
+
- LICENSE.txt
|
68
68
|
- README.md
|
69
69
|
- bin/sskatex
|
70
70
|
- data/sskatex/js/escape_nonascii_html.js
|
@@ -98,6 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements:
|
100
100
|
- Javascript engine supported by the ExecJS gem
|
101
|
+
- Some KaTeX release
|
101
102
|
rubyforge_project:
|
102
103
|
rubygems_version: 2.6.11
|
103
104
|
signing_key:
|