• Cory@lemmy.worldOP
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    I’ll look into adding markdown support but I’m not sure I’ve ever seen anything other than bare HTML come through the API. Tbh, the apps are probably just parsing the HTML. Got any examples with markdown in the posts?

    • ShittyKopper [they/them]@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 months ago

      Look into opening an account on an Iceshrimp instance like https://fedia.social, or an Akkoma instance like http://pleroma.envs.net. Their APIs are an extension on top of the Mastodon APIs (and both support Markdown and should expose them to apps). Sharkey also has some Mastodon API compatibility but it’s quite broken and might require some odd workarounds to get stuff working.

      That said, for rich text, parsing the HTML will be more than enough for nearly all cases.