• 10 Posts
  • 529 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle









  • cbarrick@lemmy.worldtoPython@programming.devNumPy 2.0.0 released
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    5 days 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

    Edit to be clear: This means that both of our markdown parsers are wrong relative to the commonmark spec. But I’ll argue that if a parser is going to attempt to autolink this, then handling trailing punctuation is better than not.