• Arthur Besse
    link
    fedilink
    English
    10
    edit-2
    21 days ago

    compare the rendering of the test output (which i also wrapped in backticks to tell the markdown rendering to render it as code) in my other comment on lemmy vs on piefed.

    Essentially, it is not possible to reliably identify the URLs in code (in a language that is not known to either PyFedi or its markdown parser), because they sometimes are adjacent to otherwise-URL-valid characters which actually terminate the URL in whatever syntax is being used inside the code block. So, even though it is sometimes harmless to auto-linkify inside a code block, it is also often wrong and therefore should not be (and generally is not) done.

    But also, code formatting should be available as a way to disable auto-linkification when a post or comment author wants to (as I did in my original comment).

    • Arthur Besse
      link
      fedilink
      English
      221 days ago

      hmm, i see my first edit to this comment got federated to piefed but subsequent edits did not; the version after subsequent edits can be seen here on the lemmy instance i’m posting from