frontend
frontend copied to clipboard
feat(markdown): add code formatting
should it be just importing the default prism dark css theme? the same as with katex
@insertish
Markdown okay I could add prettier which would be better formater.
It seems like you already have prettier so is this solved?
It's actually codeblock syntax highlighting. Frontend does not have Prism, so codeblocks will not have any type of syntax highlighting.
I was thinking if perhaps I could switch it to Shiki
But I do have a fork that adds the feature, issue is that I have not updated any of my branches to the new UI.
I thought of switching to syntax highlighting with solid-highlight because it's well known.
I have noticed that prism in frontend but thanks for mentioning it.
But I could make a fork with syntax highlighting quick that fixes the issue, only issue/concern is it going to affect page speed results or other rating's.
Wouldn't highlight.js basically do the job? It also has an npm package and is quite fast
Another contender has entered the ring: https://shiki.style/