Skip to content

Commit

Permalink
Fix for changes in KaTeX types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 4, 2023
1 parent 1914a9d commit 6fd7df3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions dev/lib/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import katex from 'katex'

/** @type {import('katex')['default']['renderToString']} */
// @ts-expect-error: types are incorrect.
const renderToString = katex.renderToString

/**
Expand Down
2 changes: 0 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import katex from 'katex'
import {micromark} from 'micromark'
import {math, mathHtml} from 'micromark-extension-math'

/** @type {import('katex')['default']['renderToString']} */
// @ts-expect-error: types are incorrect.
const renderToString = katex.renderToString

test('math', async function (t) {
Expand Down

0 comments on commit 6fd7df3

Please sign in to comment.