frontend icon indicating copy to clipboard operation
frontend copied to clipboard

feat(markdown): add code formatting

Open insertish opened this issue 2 years ago • 6 comments

insertish avatar May 19 '23 13:05 insertish

should it be just importing the default prism dark css theme? the same as with katex

levabala avatar May 21 '23 15:05 levabala

@insertish

levabala avatar May 27 '23 18:05 levabala

Markdown okay I could add prettier which would be better formater.

Eveeifyeve avatar Dec 18 '23 12:12 Eveeifyeve

It seems like you already have prettier so is this solved?

Eveeifyeve avatar Dec 18 '23 12:12 Eveeifyeve

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.

amycatgirl avatar Dec 18 '23 12:12 amycatgirl

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.

Eveeifyeve avatar Dec 20 '23 15:12 Eveeifyeve

Wouldn't highlight.js basically do the job? It also has an npm package and is quite fast

legoraft avatar Jun 11 '24 17:06 legoraft

Another contender has entered the ring: https://shiki.style/

insertish avatar Jun 11 '24 17:06 insertish