Through trial and errors, I’ve created regex for lemmy spoilers:
/:::\sspoiler\s+(?<title>.+)\n(?<body>[\s\S]+?)\n:::/g
You must log in or register to comment.
Nice! Thanks for this! I was taking a peek at how some other apps are handling this (i.e Memmy) and this looks more complete, although TBH I still find regex archaic and a pain to debug 😭
Thank you for sharing!