41
submitted 11 months ago by ernest@kbin.social to c/kbinDevlog@kbin.social

Today, I continue preparations for refactoring. Szymon updated the environment and added a spoiler tag in the markdown editor. Additionally, there were several fixes and improvements related to collections and the People page.

https://codeberg.org/Kbin/kbin-core/pulls/1325
https://codeberg.org/Kbin/kbin-core/pulls/1327

You can track changes in the official repository
https://codeberg.org/Kbin/kbin-core

or on Github
https://github.com/ernestwisniewski/kbin

you are viewing a single comment's thread
view the rest of the comments
[-] ThatOneKirbyMain2568@kbin.social 3 points 11 months ago

I mean not having the word spoiler when writing the tag. I get that it's done for Lemmy compatibility, which is why I suggest an alternative way to do it (like how italics can be written like _this_ or like *this*).

[-] Kierunkowy74@kbin.social 3 points 11 months ago

StackExchange Flavoured Markdown features spoilers done like this:

>! Hidden text

! Hidden text

Well, @ernest is aware of way, how spoilers are done on Wykop, being simply ! Hidden text

[-] ThatOneKirbyMain2568@kbin.social 2 points 11 months ago* (last edited 11 months ago)

True, though this doesn't give the spoiler a header.

Maybe something like ||header|content||, based off how Discord handles spoilers, could work.

So

don't click if you're 8 or younger
santa isn't real

could be written as

||don't click if you're 8 or younger|santa isn't real||

Edit: Backslashing doesn't seem to work on colons for whatever reason, so I removed that example of how the spoiler could be written.

[-] DessertStorms@kbin.social 3 points 11 months ago* (last edited 11 months ago)

(like how italics can be written like this or like this).

How do you get that to display without italicising/bolding the text? (E: like has clearly happened to me lol)

[-] ThatOneKirbyMain2568@kbin.social 3 points 11 months ago

Backslashes. To get _this_, you type \_this\_. In fact, you can backslash backslashes, which is how I showed the backslashes here.

[-] DessertStorms@kbin.social 3 points 11 months ago* (last edited 11 months ago)

Amazing, thanks!
(now to hope I actually remember lol)

this post was submitted on 02 Dec 2023
41 points (100.0% liked)

/kbin devlog

2 readers
1 users here now

founded 2 years ago