bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
11.88k stars 1.52k forks source link

Add support for posting with (Markdown) markup syntax. #4750

Open RokeJulianLockhart opened 4 months ago

RokeJulianLockhart commented 4 months ago

Is your feature request related to a problem? Please describe.

I can't format text.

Describe the solution you'd like

Allow posting using a standard markup syntax. Ideally, Markdown.

Describe alternatives you've considered

Another syntax, like:

  1. Typst
  2. AsciiDoc (probably a bad idea)

However, since almost all Markdown processors support HTML too, that would be as much work for less benefit.

Additional context

This has been requested at your counterpart, Mastodon — https://github.com/mastodon/mastodon/issues/23981#issue-1610687518 — to significant support: https://github.com/mastodon/mastodon/discussions/18872#discussion-4240608.

alurm commented 1 week ago

Should Typst be considered as an alternative?

RokeJulianLockhart commented 1 week ago

https://github.com/bluesky-social/social-app/issues/4750#issuecomment-2473802723

@alurm, I've not utilized Typst (or its TeX alternative, and the myriad derivatives of it). However, it appears to be for TeX what Markdown is for HTML — an alternative with more readable syntax.

If not, and it is merely a replacement for TeX, then the reason I haven't listed it as an alternative is because I do not know whether an interpreter exists that supports Bluesky's comparably limited use-cases. Irrespective of which markup language is chosen, solely a subset of its syntax would be supported. Typst, especially so.

Additionally, I've never organically encountered Typst. In comparison, I have, innumerable times, encountered websites which support Markdown markup (and occasionally HTML, which is nominally supported inline in Markdown).

In an ideal world, Typst would be the obvious choice due to how powerful it is. However, I seriously doubt that that is considered to be an advantage by the Bluesky development team.

alurm commented 1 week ago

@RokeJulianLockhart,

Here's an example: https://raw.githubusercontent.com/alurm/alurm.github.io/refs/heads/master/resume/alan-urmancheev.typ.

Pandoc can render Typst to HTML and the Typst team is working on HTML rendering I believe. Typst has a variety of usecases. I haven't considered its usability in context of Bluesky.

No doubt Markdown is more widespread. To be frank, I think Markdown is good enough for Bluesky.

RokeJulianLockhart commented 1 week ago

https://github.com/bluesky-social/social-app/issues/4750#issuecomment-2473851717

@alurm, thanks. I'll add it as an alternative. Per your example and this Reddit comment, it does seem promising, and, at least, for the basics, about as simple as Markdown is.

cristianadam commented 1 week ago

I use https://www.lingojam.cc/twitter-font-generator.html to make text italic or monospace and then paste into the Blue Sky editor.

It would be way easier if I could use markdown to do this.