This repository was archived by the owner on Jan 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,13 @@ class MyScriptMathExports extends PolymerElement {
90
90
}
91
91
92
92
_getLatex ( exports ) {
93
- return exports ? exports [ 'application/x-latex' ] || exports . LATEX || exports . latex || '' : '' ;
93
+ let exp = exports ? exports [ 'application/x-latex' ] || exports . LATEX || exports . latex || '' : '' ; // In case we have only one number being recognize like 1
94
+
95
+ if ( typeof exp === 'number' ) {
96
+ exp = exp . toString ( ) ;
97
+ }
98
+
99
+ return exp ;
94
100
}
95
101
96
102
_getLatexCleaned ( exports ) {
Original file line number Diff line number Diff line change @@ -88,7 +88,12 @@ class MyScriptMathExports extends PolymerElement {
88
88
}
89
89
90
90
_getLatex ( exports ) {
91
- return exports ? exports [ 'application/x-latex' ] || exports . LATEX || exports . latex || '' : '' ;
91
+ let exp = exports ? exports [ 'application/x-latex' ] || exports . LATEX || exports . latex || '' : '' ;
92
+ // In case we have only one number being recognize like 1
93
+ if ( typeof exp === 'number' ) {
94
+ exp = exp . toString ( ) ;
95
+ }
96
+ return exp ;
92
97
}
93
98
94
99
_getLatexCleaned ( exports ) {
You can’t perform that action at this time.
0 commit comments