I have done this accidentally a lot but if you make an error like this

This is a sentence.be happy about another sentence.

…at least in my lemmy client it automatically becomes a link.

I am not confident this is an issue but also I have noticed it and wanted to ask.

  • Dessalines@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 hours ago

    Its a feature of the markdown library we’re using in lemmy-ui (markdown-it) called linkify.

    IMO the benefits of it outweigh the negatives. Its nice to be able to just type hexbear.net or something without having to add the https:// every time.

  • davel [he/him]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 hours ago

    I wish the default Lemmy client wouldn’t interpret text as a URL so aggressively. The workaround is to preface the period with a backslash, like so: sentence\.be

    Relatedly, when I post raw links, I sandwich them in < & >, because sometimes the client won’t interpret the text aggressively enough such that some of the (usually long) URL fails to be included. The angle brackets don’t get rendered. Example: https://github.com/lemmynet/lemmy-markdown-it-plugins

  • FirmDistribution@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    6 hours ago

    Not an issue, the client has to recognize possible links.

    As the other comment mentioned, you can edit the text to fix grammar errors.

    • supersquirrel@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      5 hours ago

      My point is couldn’t someone exploit that with a website that has a url matching a common grammatical error of this type?

      You could put the chicken before the egg too by making a bunch of bot comments hat appear plausible except for errors like that and then actually launch the website right?

      If I “accidentally” link to that hostile website by making a totally normal “grammatical error” how do you establish intent?

      From a zoomed out database/admin level how do you quickly tell the difference between the two in bulk amounts of posts/comments you can’t possibly search all the way through by hand…?

      • Simon_Shitewood@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        4 hours ago

        You can’t, which is why basic IT safety includes things like not clicking random links just because they’re there.