• Andrew@piefed.social
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    I think it’s asking a lot - it’s not unreasonable for libraries to convert the markdown format for embedded images into IMG SRC, but then the clients can’t play them because they’re not images. Ideally, I think, there should be different markdown for embedded videos and audio (but it doesn’t look like there’s anything official).

    These clips play for me on PieFed, but only because after the markdown translation, they get regexed into the correct AUDIO tags.

    • Admiral Patrick@dubvee.orgOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      Agreed, Yeah, there should be a dedicated syntax for media embeds. Lemmy-UI uses markdown-it and the extension markdown-it-html5-embed which is what extends the image syntax for audio/video. I duplicated that in Tesseract for feature parity, and Photon did as well. In both cases, we had to custom write renderers to match the Lemmy-UI syntax which is, for better or worse, the “standard” for Lemmy.