Skip to content

Commit

Permalink
minor formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
artisticat1 committed Apr 27, 2024
1 parent c3bbd98 commit 7dc9772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor_extensions/math_tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const cursorTooltipField = StateField.define<readonly Tooltip[]>({

// update the tooltip by dispatching an updateTooltipEffect
export function handleMathTooltip(update: ViewUpdate) {
const shouldUpdate = update.docChanged || update.selectionSet;
const shouldUpdate = update.docChanged || update.selectionSet;
if (!shouldUpdate) return;

const settings = getLatexSuiteConfig(update.state);
Expand Down Expand Up @@ -52,7 +52,7 @@ export function handleMathTooltip(update: ViewUpdate) {
const above = settings.mathPreviewPositionIsAbove;
const create = () => {
const dom = document.createElement("div");
dom.className = "cm-tooltip-cursor";
dom.addClass("cm-tooltip-cursor");

const renderedEqn = renderMath(eqn, ctx.mode.blockMath || ctx.mode.codeMath);
dom.appendChild(renderedEqn);
Expand Down

0 comments on commit 7dc9772

Please sign in to comment.