حمید پیام عباسی@crazypeople.online to Memes@lemmy.mlEnglish · 3 个月前Yeah, well, I'm gonna go build my own lemmy. With blackjack and hookers! In fact forget the lemmy.lemmy.mlimagemessage-square166fedilinkarrow-up1228arrow-down123
arrow-up1205arrow-down1imageYeah, well, I'm gonna go build my own lemmy. With blackjack and hookers! In fact forget the lemmy.lemmy.mlحمید پیام عباسی@crazypeople.online to Memes@lemmy.mlEnglish · 3 个月前message-square166fedilink
minus-squareferric_carcinization@lemmy.mllinkfedilinkEnglisharrow-up7·3 个月前But it shouldn’t do that when enclosed in a code/preformatted block?
minus-squareEdie [he/him]@lemmy.mllinkfedilinkarrow-up7·3 个月前It shouldn’t but the markdown parser is for whatever reason not that good.
minus-squareferric_carcinization@lemmy.mllinkfedilinkEnglisharrow-up5·3 个月前Looks like it’s using markdown-it, a Rust port of a JavaScript library with the same name. It looks unmaintained. Last commit is from 2 years ago and issues look inactive. (including one asking asking about the maintenance status)
minus-squareEdie [he/him]@lemmy.mllinkfedilinkarrow-up7·3 个月前I believe the frontend uses markdown-it proper.
minus-squareferric_carcinization@lemmy.mllinkfedilinkEnglisharrow-up5·3 个月前I think that it’s the backend that screws the “url” up. Everything looks good in the preview, but the “url” part disappears upon publishing.
minus-squareferric_carcinization@lemmy.mllinkfedilinkEnglisharrow-up5·3 个月前It only becomes an image to me when outside of a code/preformatted block. Inside of one, it contains the raw markdown verbatim: <code class="hljs">!<span class="hljs-selector-attr">[alt]</span>(url)</code>.
But it shouldn’t do that when enclosed in a code/preformatted block?
It shouldn’t but the markdown parser is for whatever reason not that good.
Looks like it’s using markdown-it, a Rust port of a JavaScript library with the same name.
It looks unmaintained. Last commit is from 2 years ago and issues look inactive. (including one asking asking about the maintenance status)
I believe the frontend uses markdown-it proper.
I think that it’s the backend that screws the “url” up. Everything looks good in the preview, but the “url” part disappears upon publishing.
deleted by creator
It only becomes an image to me when outside of a code/preformatted block. Inside of one, it contains the raw markdown verbatim:
<code class="hljs">!<span class="hljs-selector-attr">[alt]</span>(url)</code>.