diff --git a/website/app/[caip2]/[asset]/page.tsx b/website/app/[caip2]/[asset]/page.tsx index b77eb6816..200651287 100644 --- a/website/app/[caip2]/[asset]/page.tsx +++ b/website/app/[caip2]/[asset]/page.tsx @@ -55,6 +55,7 @@ export default async function Page(props: { return notFound(); } + const highlighter = await loadHighlighter(); const image = frontmatter.fields.images?.find((image) => image.type === 'logo'); return ( @@ -73,7 +74,7 @@ export default async function Page(props: { - + ); diff --git a/website/components/contented/ShikiHighlighter.tsx b/website/components/contented/ShikiHighlighter.tsx index d9c785568..4a6edb8cb 100644 --- a/website/components/contented/ShikiHighlighter.tsx +++ b/website/components/contented/ShikiHighlighter.tsx @@ -1,5 +1,4 @@ import './ShikiHighlighter.css'; -import 'shiki/themes/css-variables.json'; import { ReactElement } from 'react'; import { getHighlighter as getShiki, Highlighter, renderToHtml } from 'shiki';