• AA5B@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    In the ActivityPub JSON for this post, there is no indication that this field contains MarkDown. …. it says it contains HTML

    This seems like a bug. Regardless of what clients may support, the json ought to accurately describe fields

    • Andrew@piefed.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      Another commenter (who’s contributed code to Lemmy) pointed to a link that provides the specification for that field: “A simple, human-readable, plain-text name for the object. HTML markup MUST NOT be included.”

      So in this case, it’s more that the JSON looks a bit ambiguous: ‘mediaType’ is only referring to the format of the text in a post’s body, but - unlike me - you’d also need to be aware of the spec to know that it doesn’t apply to the title.