• cbarrick@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Huh. This got me curious.

    Yes, I did just type a bare URL. Every mature markdown parser I’ve used turns this into a link, and appropriately handles trailing punctuation.

    So I went to the spec, and it’s explicitly called out that this is not an autolink. Autolinks must be explicitly surrounded with angle brackets <>.

    So yeah \shrug.

    https://spec.commonmark.org/0.31.2/#autolinks

    • rhymepurple@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      I did not know about autolinks - thanks for the link!

      It is interesting how different parsers handle this exact situation. I usually am cautious about it because I typically am not sure how it will be handled if I am not explicit with the URL and additional text.