Post

a feature i and many others long wanted in bsky now on @mu.social: syntax highlighting, both directly in the post and for longer code as a @tangled.org string embed! "we can just yolo-merge things!"

45 reposts268 likes

mostly because i didnt wanna mess with bluesky's lexicons and so that code blocks created on bluesky would still work on mu, but very possible that will be changed/updated later on

i think that you could do this without messing with bluesky's lexicon- can't you define your own facet lexicon type and use that in bluesky records?

leah 🛸@spacegirl.ing

why not facets? would it not make sense to use something like $type: "social.mu.richtext.facet#code_block" as a facet? this seems like the exact use case facets are meant for.

Oh, kinda implementing markdown? 1. Would be nice, if visual would change during writing a post too (as in Discord). 2. Kinda preferably to have a metachar here. The standard/expected \ doesnʼt work. Btw, marking them would be good too.

3. Some clients support making links on text for a long time, and itʼs usually done by md too, like: [link](mu.social). I guess, mu still cann't it as the main client (only visualize). In this case a metachar would be more important.

hrmm idk if i personally like the structure of putting markdown directly into posts like that... isn't that the point of facets?

check out this

flo-bit@flo-bit.dev

fun js ```js 0.1 + 0.2 // 0.30000000000000004 NaN === NaN // false typeof null // "object" [] == ![] // true "5" + 3 // "53" ```

what about inline code?

flo-bit@flo-bit.dev

getting a bsky app to work with granular permissions is a lot of trial and error - `app.bsky.authFullApp` doesnt include chat and cant be set to `aud=*` - `chat.bsky.authFullChatClient` in the scope builder has the wrong `aud` - video upload doesnt work (part of `app.bsky.authFullApp` but wrong aud)

I'm gonna be the guy to mention that this probably should be a app.bsky.embed.record but I recognise this doesn't have the progressive enhancement qualities of a link