Closed Rotwo closed 5 months ago
Hi there. I've had a go at this issue too. Here's a Stabkblitz link of a minimal example of how to do the syntax highlighting.
https://stackblitz.com/edit/solidjs-template-9p3yvx?file=src%2FApp.tsx
solid-markdown
package but is instead using the @kunet/solid-markdown-but-updated
package instead. This is to fix some annoying TypeScript errors. If #31 is resolved, this will no longer be an issue to deal with.EDIT: hold on I busted pnpm so badly that the entire project is busted let me fix it EDIT: alright it's been fixed and the link's been updated!
Hey! I have finally fixed it, I ended using a third-party library called highlight.js which works surprisingly well with solid-markdown. Also, thanks for letting me know the new npm package, it was really helpful to fix some types errors.
I've been trying to render some code like this one:
but the code is not rendering any code format or colours. Please tell me if I'm missing some setting to enable that or if it is unsupported.