algebra-latex
Advanced tools
@@ -101,2 +101,5 @@ 'use strict'; | ||
if (root.operator == 'exponent') { | ||
if (root.rhs.type == 'number' && root.rhs.value < 0) { | ||
rhsParen = true; | ||
} | ||
rhs = rhsParen ? '{' + rhs + '}' : rhs; | ||
@@ -103,0 +106,0 @@ } else { |
@@ -104,2 +104,8 @@ 'use strict'; | ||
if (root.operator == 'exponent') { | ||
if (root.rhs.type == 'number' && root.rhs.value < 0) { | ||
rhsParen = true; | ||
} | ||
} | ||
lhs = lhsParen ? '(' + lhs + ')' : lhs; | ||
@@ -106,0 +112,0 @@ rhs = rhsParen ? '(' + rhs + ')' : rhs; |
@@ -415,3 +415,2 @@ 'use strict'; | ||
// number : NUMBER | ||
// | UNI_OP | ||
// | variable | ||
@@ -418,0 +417,0 @@ // | keyword |
{ | ||
"name": "algebra-latex", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "rm -rf ./lib && babel src -d lib", |
1323
0.53%49599
-32.7%15
-31.82%