mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #183 from omnivore-app/fix/mathjax-script
Use next/script for Mathjax
This commit is contained in:
commit
bf92d63203
1 changed files with 7 additions and 8 deletions
|
|
@ -18,6 +18,7 @@ import { userPersonalizationMutation } from '../../../lib/networking/mutations/u
|
|||
import { webBaseURL } from '../../../lib/appConfig'
|
||||
import { updateThemeLocally } from '../../../lib/themeUpdater'
|
||||
import { EditLabelsModal } from './EditLabelsModal'
|
||||
import Script from 'next/script'
|
||||
|
||||
type ArticleContainerProps = {
|
||||
viewerUsername: string
|
||||
|
|
@ -119,14 +120,12 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<script async src="/static/scripts/mathJaxConfiguration.js" />
|
||||
<script
|
||||
async
|
||||
id="MathJax-script"
|
||||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
|
||||
/>
|
||||
</Head>
|
||||
<Script async src="/static/scripts/mathJaxConfiguration.js" />
|
||||
<Script
|
||||
async
|
||||
id="MathJax-script"
|
||||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
|
||||
/>
|
||||
<Box
|
||||
id="article-container"
|
||||
css={{
|
||||
|
|
|
|||
Loading…
Reference in a new issue