Replace Webpack with Vite (#4765)
Co-authored-by: Tom Moor <tom@getoutline.com> Co-authored-by: Vio <vio@beanon.com>
This commit is contained in:
22
patches/@benrbray+prosemirror-math+0.2.2.patch
Normal file
22
patches/@benrbray+prosemirror-math+0.2.2.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/node_modules/@benrbray/prosemirror-math/dist/index.es.js b/node_modules/@benrbray/prosemirror-math/dist/index.es.js
|
||||
index b52d589..0b4cb17 100644
|
||||
--- a/node_modules/@benrbray/prosemirror-math/dist/index.es.js
|
||||
+++ b/node_modules/@benrbray/prosemirror-math/dist/index.es.js
|
||||
@@ -3,7 +3,7 @@ import { EditorView, DecorationSet, Decoration } from 'prosemirror-view';
|
||||
import { StepMap } from 'prosemirror-transform';
|
||||
import { keymap } from 'prosemirror-keymap';
|
||||
import { chainCommands, deleteSelection, newlineInCode } from 'prosemirror-commands';
|
||||
-import katex, { ParseError } from 'katex';
|
||||
+import katex from 'katex';
|
||||
import { Fragment, Schema } from 'prosemirror-model';
|
||||
import { InputRule } from 'prosemirror-inputrules';
|
||||
|
||||
@@ -213,7 +213,7 @@ class MathView {
|
||||
this.dom.setAttribute("title", "");
|
||||
}
|
||||
catch (err) {
|
||||
- if (err instanceof ParseError) {
|
||||
+ if (err instanceof katex.ParseError) {
|
||||
console.error(err);
|
||||
this._mathRenderElt.classList.add("parse-error");
|
||||
this.dom.setAttribute("title", err.toString());
|
||||
Reference in New Issue
Block a user