asciimath 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +12 -0
- data/lib/asciimath/parser.rb +1 -1
- data/lib/asciimath/version.rb +1 -1
- data/spec/parser_spec.rb +5 -0
- 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: dbf88b3aa9fe930bab8c1cd59e2aefadf777c681
|
4
|
+
data.tar.gz: 6f1c3017ab2e6253f839436db7125c13af78fd84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c89e3a22d9c066f45ffda344dd6af9605ae10c1b0a09bfe984e4127625ed5eff6689de097a35df9157440632a16464e4b1a29fed31347198cd88d80ea53949e
|
7
|
+
data.tar.gz: 6b46bc52dbe38edfad06d087343e7bc9bcb904aaa1f9723a567e3c5312be9d734df5b579a0118991d967ef57a8d0584f25f7dc008cfe776d4dea28243f9d9d32
|
data/CHANGELOG.adoc
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
= Asciimath Changelog
|
2
2
|
|
3
|
+
== 1.0.6
|
4
|
+
|
5
|
+
Bug fixes::
|
6
|
+
|
7
|
+
* Resolve 'undefined variable' error when parsing empty `paren` expressions (@tuttieee)
|
8
|
+
|
9
|
+
== 1.0.5
|
10
|
+
|
11
|
+
Enhancements::
|
12
|
+
|
13
|
+
* Add experimental HTML output (@Tobski)
|
14
|
+
|
3
15
|
== 1.0.4
|
4
16
|
|
5
17
|
Enhancements::
|
data/lib/asciimath/parser.rb
CHANGED
@@ -477,7 +477,7 @@ module AsciiMath
|
|
477
477
|
t2 = tok.next_token
|
478
478
|
case t2[:type]
|
479
479
|
when :rparen, :lrparen
|
480
|
-
{:type => :paren, :e =>
|
480
|
+
{:type => :paren, :e => nil, :lparen => t1[:value], :rparen => t2[:value]}
|
481
481
|
else
|
482
482
|
tok.push_back(t2)
|
483
483
|
|
data/lib/asciimath/version.rb
CHANGED
data/spec/parser_spec.rb
CHANGED
@@ -112,6 +112,11 @@ TEST_CASES = {
|
|
112
112
|
{
|
113
113
|
:mathml => '<math><mstyle mathvariant="bold"><mrow><mi>a</mi><mo>+</mo><mi>b</mi></mrow></mstyle><mo>+</mo><mstyle mathvariant="script"><mi>c</mi></mstyle><mo>=</mo><mstyle mathvariant="fraktur"><msup><mi>d</mi><mi>n</mi></msup></mstyle></math>',
|
114
114
|
:html => 'Unsupported'
|
115
|
+
},
|
116
|
+
'max()' =>
|
117
|
+
{
|
118
|
+
:mathml => '<math><mo>max</mo><mrow><mo>(</mo><mo>)</mo></mrow></math>',
|
119
|
+
:html => '<span class="math-inline"><span class="math-row"><span class="math-operator">max</span><span class="math-row"><span class="math-brace">(</span><span class="math-brace">)</span></span></span></span>'
|
115
120
|
}
|
116
121
|
}
|
117
122
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciimath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pepijn Van Eeckhoudt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|