Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade to MathJax v4 #27

Merged
merged 9 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.3.0](https://github.com/AmerMathSoc/mathjax-unicode-math/compare/v1.2.3...v1.3.0) (2023-08-17)


### Features

* upgrade to MathJax v4 ([3d0d678](https://github.com/AmerMathSoc/mathjax-unicode-math/commit/3d0d678ca89ec0b329930a3c3182334cc34e427f)), closes [#44](https://github.com/AmerMathSoc/mathjax-unicode-math/issues/44)

### [1.2.3](https://github.com/AmerMathSoc/mathjax-unicode-math/compare/v1.2.2...v1.2.3) (2022-12-21)


Expand Down
18 changes: 17 additions & 1 deletion browser/unicode-math.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions components/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"build": {
"id": "[ams]/unicode-math",
"component": "input/tex/extension/unicode-math",
"js": "../js",
"ts": "../ts",
"targets": ["unicode-math.ts"]
},
"webpack": {
"name": "unicode-math",
"js": "../js",
"libs": [
"components/src/input/tex-base/lib",
"components/src/core/lib"
],
"dist": "../browser/"
}
}
12 changes: 12 additions & 0 deletions components/lib/unicode-math.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {combineWithMathJax} from '../../node_modules/mathjax-full/mjs/components/global.js';
import {VERSION} from '../../node_modules/mathjax-full/mjs/components/version.js';

import * as module1 from '../../js/unicode-math.js';

if (MathJax.loader) {
MathJax.loader.checkVersion('[ams]/unicode-math', VERSION, 'tex-extension');
}

combineWithMathJax({_: {
"unicode-math": module1
}});
1 change: 1 addition & 0 deletions components/unicode-math.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/unicode-math.js'; // NOTE magical path for MathJax's build process
2 changes: 1 addition & 1 deletion js/unicode-math.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Configuration } from "mathjax-full/js/input/tex/Configuration.js";
import { Configuration } from "mathjax-full/mjs/input/tex/Configuration.js";
export declare const configuration: Configuration;
Loading