you are viewing a single comment's thread
view the rest of the comments
[–] 13 points 4 months ago (16 children)

I forget, how do you add alt-text again? I keep forgetting the right way to do it.

  • source
  • parent
  • hideshow 16 child comments
  • [–] 12 points 4 months ago* (last edited 4 months ago) (15 children)

    The syntax for images in markdown is Exclamation mark, alt text in square brackets then the url in parentheses.

    Edit: Feels ridiculous to have to use a real image for this. Lemmy really seems to dislike image-like formatting in code blocks.

  • source
  • parent
  • hideshow 15 child comments
  • [–] 9 points 4 months ago* (last edited 4 months ago) (10 children)

    ![alt text](it tries to make the URL into an image or something so make it more than one word)

  • source
  • parent
  • hideshow 10 child comments
  • [–] 7 points 4 months ago (6 children)

    But it shouldn't do that when enclosed in a code/preformatted block?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 7 points 4 months ago (5 children)

    It shouldn't but the markdown parser is for whatever reason not that good.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 5 points 4 months ago (4 children)

    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)

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 4 months ago (3 children)

    I believe the frontend uses markdown-it proper.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 4 months ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 4 months ago* (last edited 4 months ago) (2 children)

    wrongI think it's ![image title](image url "image alt text")

  • source
  • parent
  • hideshow 2 child comments
  • [–] 9 points 4 months ago* (1 child)

    No it is alt text in the square brackets and title in the quotations

  • source
  • parent
  • hideshow 1 child comment
  • [–] 16 points 4 months ago*

    lets test it

    ![PFLP poster](https://lemmy/ ml/pictrs/image/c09846dd-823e-4dc8-a486-f10a5696b620.webp?format=webp "PFLP poster that says 'Do you commend hamas?'")

    PFLP poster

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

  • source
  • parent
  • [–] 5 points 4 months ago*

    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.

  • source
  • parent