Open nolanlawson opened 4 years ago
This would be indeed very nice to have, it's the only reason why I often find myself going back to PleromaFE or SoapboxFE to compose markdown-based toots.
I haven't really looked into whether Pleroma can enable markdown parsing via its API, but adding this feature might be as simple as changing the content type from text/plain to text/markdown when submitting a toot, and the rest will be done on the server.
GoToSocial also supports markdown as an input type, and it looks like you just send the raw markdown, like @Flameborn said. GTS doesn't have its own frontend, and links to Pinafore for desktop users. I'm not good at JS but I can try to implement this.
I tried to post markdown by adding "format": "markdown"
to the JSON body, and that works on GoToSocial.
On Pleroma it looks a bit different though, from what I can tell.
Not sure how to do it in a general way.
I believe posting markdown to a Pleroma-based server is as simple as:
"content_type": "text/markdown",
instead of using format.
Since there’s no generic way to do this based on the Mastodon API, I think we’ll need to check the instance server name and act on that.
This would also allow specifying additional visibility types, e.g. local only and list for Pleroma later on, which would be great to have IMHO.
On 2022. Jun 2., at 12:27, ugla @.***> wrote:
I tried to post markdown by adding "format": "markdown" to the JSON body, and that works on GoToSocial. On Pleroma it looks a bit different though, from what I can tell. Not sure how to do it in a general way.
— Reply to this email directly, view it on GitHub https://github.com/nolanlawson/pinafore/issues/1798#issuecomment-1144701546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLD4D67IZPZBDSF4CG3D3VNCD7RANCNFSM4N26BUSA. You are receiving this because you were mentioned.
As reported here: https://fedi.absturztau.be/objects/12c66455-7412-45f7-8ef2-c639b94ab717