@seorii/prosemirror-math
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -14,3 +14,3 @@ /// <reference types="g" /> | ||
// katex | ||
import { KatexOptions } from "katex"; | ||
import katex from "katex"; | ||
/*--------------------------------------------------------- | ||
@@ -53,3 +53,3 @@ * Author: Benjamin R. Bray | ||
/** Whether to render this node as display or inline math. */ | ||
katexOptions?: KatexOptions; | ||
katexOptions?: katex.KatexOptions; | ||
} | ||
@@ -56,0 +56,0 @@ declare class MathView implements NodeView, ICursorPosObserver { |
@@ -14,3 +14,3 @@ /// <reference types="g" /> | ||
// katex | ||
import { KatexOptions } from "katex"; | ||
import katex from "katex"; | ||
/*--------------------------------------------------------- | ||
@@ -53,3 +53,3 @@ * Author: Benjamin R. Bray | ||
/** Whether to render this node as display or inline math. */ | ||
katexOptions?: KatexOptions; | ||
katexOptions?: katex.KatexOptions; | ||
} | ||
@@ -56,0 +56,0 @@ declare class MathView implements NodeView, ICursorPosObserver { |
@@ -7,3 +7,3 @@ import { TextSelection, Plugin, EditorState, PluginKey, NodeSelection } from 'prosemirror-state'; | ||
import { chainCommands, deleteSelection, newlineInCode } from 'prosemirror-commands'; | ||
import { render } from 'katex'; | ||
import katex from 'katex'; | ||
import { Fragment, Schema } from 'prosemirror-model'; | ||
@@ -96,3 +96,3 @@ import { InputRule } from 'prosemirror-inputrules'; | ||
try { | ||
render(texString, this.tooltip, Object.assign({ | ||
katex.render(texString, this.tooltip, Object.assign({ | ||
globalGroup: true, | ||
@@ -270,3 +270,3 @@ throwOnError: false | ||
try { | ||
render(texString, this._mathRenderElt, this._katexOptions); | ||
katex.render(texString, this._mathRenderElt, this._katexOptions); | ||
this._mathRenderElt.classList.remove("parse-error"); | ||
@@ -273,0 +273,0 @@ this.dom.setAttribute("title", ""); |
@@ -9,3 +9,3 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
import { chainCommands, deleteSelection, newlineInCode, joinBackward, selectNodeBackward } from 'prosemirror-commands'; | ||
import { render } from 'katex'; | ||
import katex from 'katex'; | ||
@@ -148,3 +148,3 @@ /*--------------------------------------------------------- | ||
try { | ||
render(texString, this.tooltip, Object.assign({ | ||
katex.render(texString, this.tooltip, Object.assign({ | ||
globalGroup: true, | ||
@@ -322,3 +322,3 @@ throwOnError: false | ||
try { | ||
render(texString, this._mathRenderElt, this._katexOptions); | ||
katex.render(texString, this._mathRenderElt, this._katexOptions); | ||
this._mathRenderElt.classList.remove("parse-error"); | ||
@@ -325,0 +325,0 @@ this.dom.setAttribute("title", ""); |
{ | ||
"name": "@seorii/prosemirror-math", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Schema and plugins for first-class math support in ProseMirror.", | ||
@@ -5,0 +5,0 @@ "repository": "github:benrbray/prosemirror-math", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1512995