Skip to content

Commit d702740

Browse files
author
Hamada Gasmallah
committed
fix: Fix the package import for mathjax
1 parent 2ce857c commit d702740

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Mathjax/Mathjax.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useEffect } from 'react';
22
import { useShadowRootElements } from '@backstage/plugin-techdocs-react';
3-
import { init } from 'mathjax';
4-
3+
const { init } = require('mathjax');
54

65

76

0 commit comments

Comments
 (0)