Skip to content

Commit 0988122

Browse files
committed
Sync with latest Mathlive
1 parent 83fdb38 commit 0988122

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<body>
99
<script type="module">
1010
import Vue from "https://cdn.jsdelivr.net/npm/vue/dist/vue.esm.browser.js";
11-
import MathLive from "https://unpkg.com/mathlive/dist/mathlive.min.mjs";
12-
import Mathfield from "https://unpkg.com/mathlive/dist/vue-mathlive.mjs";
11+
import * as MathLive from "https://unpkg.com/mathlive/dist/mathlive.mjs";
12+
import MathfieldComponent from "https://unpkg.com/mathlive/dist/vue-mathlive.mjs";
1313
Vue.config.devtools = true;
1414

15-
Vue.use(Mathfield, MathLive);
15+
Vue.use(MathfieldComponent, MathLive);
1616
// The default tag for mathfields is <mathlive-mathfield>
1717
// A custom tag can be defined using:
1818
// ```Vue.component("custom-tag", Mathfield);```
@@ -39,7 +39,7 @@
3939
},
4040
asSpokenText: function () {
4141
return this.$refs.mathfield
42-
? this.$refs.mathfield.text("spoken")
42+
? this.$refs.mathfield.getValue("spoken")
4343
: "";
4444
},
4545
},

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"homepage": "https://github.com/arnog/vue-mathlive#readme",
2626
"dependencies": {
27-
"mathlive": "^0.55.0"
27+
"mathlive": "latest"
2828
},
2929
"devDependencies": {
3030
"http-server": "^0.12.3"

0 commit comments

Comments
 (0)