
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?'">
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>.
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?'">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.
The preview for me becomes an image as soon as I preview.
<img src="test" alt="test">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>.