Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syntax highlighting to posts #5065

Open
ocodista opened this issue Sep 1, 2024 · 10 comments
Open

Add syntax highlighting to posts #5065

ocodista opened this issue Sep 1, 2024 · 10 comments
Labels
feature-request A request for a new feature

Comments

@ocodista
Copy link

ocodista commented Sep 1, 2024

Is your feature request related to a problem? Please describe.
No, just a lacking feature. Would love to have code blocks highlights on posts 😁

Describe the solution you'd like
I would like to have formatted markdown on posts

Describe alternatives you've considered
Code blocks, bold and italic would be a great start.

Additional context

@ocodista ocodista added the feature-request A request for a new feature label Sep 1, 2024
@kauefraga
Copy link

kauefraga commented Sep 1, 2024

I would like to see it too! Looks like there's a similar issue, #4750.

I am not very experienced with rendering markdown in React but react-remark seems to accomplish this task well. To highlight code blocks shikijs is interesting.

Also, I want to point that adding markdown support in a social media would require a WYSIWYG editor (or something similar) to be used by all users.

@DanielHe4rt
Copy link

If I remember well, rendering shiki in such a level can bring performance issues but it still can be done 😁

@LukeberryPi
Copy link

+1 this would be amazing

@kauefraga
Copy link

kauefraga commented Sep 1, 2024

Paul Frazee wrote about this text formatting issue, "Why RichText facets in Bluesky", so I guess we won't get the markdown support. However, it would be really nice to have bold, italic and code blocks at least!

@lokinmodar
Copy link

Paul Frazee wrote about this text formatting issue, "Why RichText facets in Bluesky", so I guess we won't get the markdown support. However, it would be really nice to have bold, italic and syntax highlight at least!

This changes everything. There are valid reasons to not use it then. I agree with the linked post's arguments.

@herbertcordeiro
Copy link

+1 this would be amazing

@Gubiar
Copy link

Gubiar commented Sep 1, 2024

+1 This feature will be awesome

@fazedordecodigo
Copy link

+1 This so cool!!

@vitorxfs
Copy link

vitorxfs commented Sep 1, 2024

Paul Frazee wrote about this text formatting issue, "Why RichText facets in Bluesky", so I guess we won't get the markdown support. However, it would be really nice to have bold, italic and code blocks at least!

Code blocks seem nice, but very limiting in 300 characteres.
Maybe it would be nice to have a way of "attaching" code, the same way we attach pictures. It would not be limited by the 300 characters, and it would be more accessible than a screenshot.

@nicolasmelo1
Copy link

I think that it should be a code snippet, the same way that slack does.

In a sense, it's just attaching a file to a post (on a different format from a video or a photo). I don't know how files work inside of Bluesky, but i think it would be the easiest implementation.

And the character limit wouldn't be an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a new feature
Projects
None yet
Development

No branches or pull requests

10 participants