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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82151a09eeb08692d5879ebb592fff3522834e6f
4
- data.tar.gz: 8d5d844b47b7ffbb6473535f7366aefed1783d6e
3
+ metadata.gz: dbf88b3aa9fe930bab8c1cd59e2aefadf777c681
4
+ data.tar.gz: 6f1c3017ab2e6253f839436db7125c13af78fd84
5
5
  SHA512:
6
- metadata.gz: bec21ba3ea7e11c768f85036c1091ab7e3b312e11b98ad4da55af55caf8f4a8d4638990daf1747a5bfb4387728977fb95d6a0770bde3eead18b449b8f9adf8c8
7
- data.tar.gz: 1f0c2af41feb89b48dc9aba6f595e38d3f1ed787ab6274761f16ff8fa1330fcb252f9c1b6867ef680708d012ada805417eb524ad1b17f4358d37072f4485404f
6
+ metadata.gz: 3c89e3a22d9c066f45ffda344dd6af9605ae10c1b0a09bfe984e4127625ed5eff6689de097a35df9157440632a16464e4b1a29fed31347198cd88d80ea53949e
7
+ data.tar.gz: 6b46bc52dbe38edfad06d087343e7bc9bcb904aaa1f9723a567e3c5312be9d734df5b579a0118991d967ef57a8d0584f25f7dc008cfe776d4dea28243f9d9d32
@@ -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::
@@ -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 => e, :lparen => t1[:value], :rparen => t2[:value]}
480
+ {:type => :paren, :e => nil, :lparen => t1[:value], :rparen => t2[:value]}
481
481
  else
482
482
  tok.push_back(t2)
483
483
 
@@ -1,3 +1,3 @@
1
1
  module AsciiMath
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -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.5
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-08-02 00:00:00.000000000 Z
11
+ date: 2018-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler