this post was submitted on 09 Feb 2025
5 points (100.0% liked)

JavaScript

2237 readers
1 users here now

founded 2 years ago
MODERATORS
top 7 comments
sorted by: hot top controversial new old
[–] towerful@programming.dev 3 points 1 month ago (1 children)
[–] okelote360@lemmy.world 0 points 1 month ago* (last edited 1 month ago) (2 children)

i use JS. not TS or Node.JS

[–] towerful@programming.dev 1 points 1 month ago

So strip out the typescript.
Or compile it, and use the result. Typescript doesn't minify, so worst case is you have some odd looking code. But it will be functionally the same.
If you are really lazy, feed it into chatgpt and ask it to remove the typescript.

That is the Web UI frontend. It's designed to run in the browser.
That is the literal reference implementation. That is what the Lemmy Devs coded as the web fronted to work with the Lemmy backend, as deployed on all (maybe, most) Lemmy instances.
It's not any 3rd party reimplementation. It's not example code.
It is the 1st party, guaranteed to be correct, Lemmy markdown processor.
You won't find a better reference.

[–] nick@midwest.social 1 points 1 month ago

Figure it out yourself then.

[–] executivechimp@discuss.tchncs.de 1 points 1 month ago (2 children)

Is there anything special about Lemmy markdown?

[–] BB_C@programming.dev 4 points 1 month ago

It's not Lemmy markdown. The implementation used in lemmy-ui (specifically) is markdown-it. And yes it's special (not in a good way).

Some of us advised Lemmy devs to switch to a CommonMark implementation before it's too late. That would have allowed for using higher quality and faster implementations, not to mention allowing/easing better interop. But the devs weren't interested in the suggestion.

[–] okelote360@lemmy.world 0 points 1 month ago

yup. for example !community@instance