Rich text support #771
Closed
onethingwelldev
started this conversation in
General
Replies: 1 comment 1 reply
-
Thanks for the nudge! That section of the BF docs should indeed be updated. I haven't tested interop with Mastodon 4.2's formatting support much yet, but BF is definitely preserving your HTML content. Here's the activity it sent for one of your test posts that included {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Create",
"id": "https://fed.brid.gy/r/https://onethingwell.dev/test2#bridgy-fed-create",
"actor": "https://fed.brid.gy/onethingwell.dev",
"published": "2023-12-23T16:24:53.247080+00:00",
"object": {
"type": "Note",
"id": "https://fed.brid.gy/r/https://onethingwell.dev/test2",
"content": "Test...\n <pre>test code</pre>",
"url": "https://fed.brid.gy/r/https://onethingwell.dev/test2",
"attributedTo": "https://fed.brid.gy/onethingwell.dev",
"contentMap": {"en": "Test...\n <pre>test code</pre>"},
"to": ["https://www.w3.org/ns/activitystreams#Public"]
},
"to": ["https://www.w3.org/ns/activitystreams#Public"]
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is from BF docs:
Since v4.2, Mastodon supports some additional tags (https://docs.joinmastodon.org/spec/activitypub/#sanitization), so I tried to include
<pre>
tag insideh-entry
, but it seems to be stripped out by BF. Do I need to do something else to include this?Beta Was this translation helpful? Give feedback.
All reactions