You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code blocks that work are processed via rehype, the ones that don't work are the ones clientside resolving the content on the given url as shown in above example.
It would be really cool if this example could be updated to also show how to use shiki client-side using the wasm module.
The text was updated successfully, but these errors were encountered:
marcofranssen
changed the title
Fails to load onig.wasm, and themes
Fails to load onig.wasm, themes and languages
May 2, 2023
In my blog I use tailwind and I have followed the instructions from the README.md. The page I share here is using the pages approach.
https://nextjs-blog-git-replace-code-blocks-highlighting-marcofranssen.vercel.app/git-recipes
components/code-block.tsx
lib/highlight.js
On this page I use the code-block as following:
I have following in the next config
What am I missing to make it work? 🤔
For other pages you might notice it does work as there I'm prepocessing the
md
files using rehype. https://nextjs-blog-git-replace-code-blocks-highlighting-marcofranssen.vercel.app/secure-your-software-supply-chain-using-sigstore-and-github-actionsThe code blocks that work are processed via rehype, the ones that don't work are the ones clientside resolving the content on the given url as shown in above example.
It would be really cool if this example could be updated to also show how to use shiki client-side using the wasm module.
The text was updated successfully, but these errors were encountered: