
yeah you’re right
<imgsrc="https://lemmy.ml/pictrs/image/c09846dd-823e-4dc8-a486-f10a5696b620.webp?format=webp"alt="PFLP poster"title="PFLP poster that says 'Do you commend hamas?'">
could have sworn I saw it the other way around and thought it weird which is why I remembered it but apparently it’s not like that…
It only becomes an image to me when outside of a code/preformatted block. Inside of one, it contains the raw markdown verbatim: <codeclass="hljs">!<spanclass="hljs-selector-attr">[alt]</span>(url)</code>.
The syntax for images in markdown is
.
Edit: Feels ridiculous to have to use a real image for this. Lemmy really seems to dislike image-like formatting in code blocks.
wrong
I think it’s
No it is alt text in the square brackets and title in the quotations
lets test it
yeah you’re right
<img src="https://lemmy.ml/pictrs/image/c09846dd-823e-4dc8-a486-f10a5696b620.webp?format=webp" alt="PFLP poster" title="PFLP poster that says 'Do you commend hamas?'">could have sworn I saw it the other way around and thought it weird which is why I remembered it but apparently it’s not like that…
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>.Thanks!
Nice alt text, very concise!
Thanks!
Used to do that all the time but a certain someone got all my carefully labeled images nuked when they got banned.
My apologies to my differently sighted people out there. I hope I can be strong for you once more.