@pie-lib/math-rendering 3.2.1-next.1 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/lib/mml-to-latex.js +4 -2
- package/lib/mml-to-latex.js.map +1 -1
- package/package.json +4 -4
- package/src/mml-to-latex.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.2.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.2.0...@pie-lib/math-rendering@3.2.1) (2023-10-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* revert mathml-to-latex version as it seems to break math rendering ([46e841c](https://github.com/pie-framework/pie-lib/commit/46e841c00c2a04ff0e3442625870b3b457571a8e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.2.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.1.2...@pie-lib/math-rendering@3.2.0) (2023-09-27)
|
|
7
18
|
|
|
8
19
|
|
package/lib/mml-to-latex.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _mathmlToLatex = require("
|
|
10
|
+
var _mathmlToLatex = _interopRequireDefault(require("mathml-to-latex"));
|
|
9
11
|
|
|
10
12
|
var _default = function _default(mathml) {
|
|
11
|
-
return _mathmlToLatex.
|
|
13
|
+
return _mathmlToLatex["default"].convert(mathml);
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
exports["default"] = _default;
|
package/lib/mml-to-latex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/mml-to-latex.js"],"names":["mathml","
|
|
1
|
+
{"version":3,"sources":["../src/mml-to-latex.js"],"names":["mathml","Mathml2latex","convert"],"mappings":";;;;;;;;;AAAA;;eACe,kBAACA,MAAD;AAAA,SAAYC,0BAAaC,OAAb,CAAqBF,MAArB,CAAZ;AAAA,C","sourcesContent":["import Mathml2latex from 'mathml-to-latex';\nexport default (mathml) => Mathml2latex.convert(mathml);\n"],"file":"mml-to-latex.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/math-rendering",
|
|
3
|
-
"version": "3.2.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "math rendering utilities",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"author": "pie-framework developers",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@pie-framework/mathml-to-latex": "1.3.3",
|
|
14
13
|
"debug": "^4.1.1",
|
|
15
14
|
"lodash": "^4.17.11",
|
|
16
|
-
"mathjax-full": "3.2.2"
|
|
15
|
+
"mathjax-full": "3.2.2",
|
|
16
|
+
"mathml-to-latex": "1.2.0"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "aa9584db9aeb1345e8a1a4ce636c4b0620252f32",
|
|
19
19
|
"scripts": {}
|
|
20
20
|
}
|
package/src/mml-to-latex.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default (mathml) =>
|
|
1
|
+
import Mathml2latex from 'mathml-to-latex';
|
|
2
|
+
export default (mathml) => Mathml2latex.convert(mathml);
|