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>.

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…
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.
I can see it does indeed also disappear upon publishing
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>.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…