Skip to content

Commit

Permalink
chore: bump mathlive version to 0.98.6
Browse files Browse the repository at this point in the history
Mathlive now has a custom context menu that can also be accessed through a long press. There are some issues that need to be resolved when using the new context menu with multiple mathlive elements on the page.

Issue where f, g, and h was treated differently has also been resolved.
  • Loading branch information
mgreminger committed Jan 31, 2024
1 parent 9373701 commit b7205a0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
33 changes: 17 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"idb-keyval": "^6.2.0",
"mathjax": "^3.2.2",
"mathjs": "^11.8.2",
"mathlive": "github:mgreminger/mathlive#implicit-function-fix",
"mathlive": "^0.98.6",
"plotly.js-basic-dist": "github:mgreminger/plotly.js#dist-basic-for-ep",
"quick-lru": "^6.1.1",
"quill": "^1.3.7",
Expand Down
13 changes: 6 additions & 7 deletions src/MathField.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,9 @@
mathLiveField.smartSuperscript = false;
mathLiveField.inlineShortcuts = INLINE_SHORTCUTS;
mathLiveField.keybindings = mathLiveField.keybindings
.filter((value) => value.key !== '[Paste]' &&
value.key !== 'ctrl+v' &&
value.key !== 'cmd+v');
mathLiveField.mathModeSpace = '\\:'
setLatex(latex); // set intial latex value
setLatex(latex); // set initial latex value
} else {
mathLiveField.readOnly = true;
}
Expand Down Expand Up @@ -167,7 +162,7 @@
math-field {
font-size: 16px;
contain: content;
z-index: 500;
background-color: transparent;
}
Expand Down Expand Up @@ -199,6 +194,10 @@
display: none;
}
math-field::part(menu-toggle) {
display: none;
}
math-field::part(container) {
touch-action: auto;
}
Expand Down

0 comments on commit b7205a0

Please sign in to comment.