• Kalcifer@sh.itjust.worksOP
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    12 hours ago

    […] the link in the post body goes to a “page doesn’t exist or has been deleted” message because of the period at the end […]

    Ah! Interesting! That’s good to know. I didn’t consider that some Lemmy apps or browser UI’s might not format the Markdown how I’ve been expecting. The correct CommonMark Markdown syntax for plain text links is to do <uri-inside-angle-brackets> [1]; I’ll change the URL in the post’s body to that format to improve support. Thanks for letting me know! 😊

    References
    1. “CommonMark Spec”. John MacFarlane. Version: 0.31.2. Published: 2024-01-28. Accessed: 2025-01-21T01:27Z. https://spec.commonmark.org/0.31.2/#autolinks.
      • §6.5 (“Autolinks”):

        Autolinks are absolute URIs and email addresses inside < and >. They are parsed as links, with the URL or email address as the link label.

        A URI autolink consists of <, followed by an absolute URI followed by >. It is parsed as a link to the URI, with the URI as the link’s label.

        An absolute URI, for these purposes, consists of a scheme followed by a colon (:) followed by zero or more characters other than ASCII control characters, space, <, and >. If the URI includes these characters, they must be percent-encoded (e.g. %20 for a space).

        For purposes of this spec, a scheme is any sequence of 2–32 characters beginning with an ASCII letter and followed by any combination of ASCII letters, digits, or the symbols plus (“+”), period (“.”), or hyphen (“-”).