• ferric_carcinization@lemmy.ml
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    3 months ago

    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.

    • Edie [he/him]@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      3 months ago

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

          • mathemachristian[he]@lemmy.ml
            link
            fedilink
            arrow-up
            16
            ·
            3 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…

          • ferric_carcinization@lemmy.ml
            link
            fedilink
            English
            arrow-up
            5
            ·
            3 months ago

            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)

    • UltraGiGaGigantic@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 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.