this post was submitted on 03 Mar 2024
129 points (98.5% liked)

Voyager

5266 readers
68 users here now

The official lemmy community for Voyager, an open source, mobile-first client for lemmy.

Download on App Store

Download on Play Store

Use as a Web App

Download on F-Droid

Rules

  1. Be nice.
  2. lemmy.world instance policy

Sponsor development! πŸ‘‡

Number of sponsors badge

πŸ’™

founded 11 months ago
MODERATORS
129
submitted 3 months ago* (last edited 3 months ago) by aeharding to c/voyagerapp
 

Voyager has finally added support for spoilers! This was the 9th issue reported in Voyager's Github project, back in June last year. (Since then, Voyager users have created nearly 600 issues with around 500 being resolved!)

It was a huge undertaking, involving a few different packages and nearly one hundred unit tests in order to ensure proper parsing logic.

Also, I've published Voyager's spoiler plugin with AGPL-3.0, so any other FOSS lemmy app using Remark for markdown parsing can more easily add spoiler support :)

So, now Voyager should properly parse spoilers, check it out below! Shortly, I will add support in the Markdown toolbar so you can easily create your own.

(by the way - this release also adds support for horizontal rules. Voyager should now support all of the official Markdown syntax.)

Formatting

The Lemmy spoiler format is based on the CommonMark Container Block Directive proposal. In fact, the spoiler plugin was forked from remark's directive plugin (this plugin is not flexible enough to be compatible with markdown-it-directive, what lemmy-ui is using, without forking). Their behavior is very similar to Markdown code blocks. Here's the "happy path" syntax (but there's edge cases that behave similar to edge cases of markdown code blocks):

Hi there!Some text

Some examples

Below are some examples stress testing the spoiler parsing.

The spoiler syntax happy pathSome text


::

πŸ‘‹ Hi there with bonus colons and spaces!

This is a spoiler message. Boo! πŸ‘»

spoiler Nested spoiler!

This spoiler is nested within the "Hi there!" spoiler. I don't know why you'd want to nest spoilers... But you can πŸ˜†

:::::


Spoiler in a quote with implicit closing fenceYou can quote spoilers. πŸ€” idk why you'd want to but you can.


spoiler A spoiler at the end of the post

Bonus dog for tapping spoiler

all 15 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 3 months ago

Amazing! It looks great. Thanks! :)

[–] [email protected] 10 points 3 months ago

Finally, the spoiler thing was my only big gripe with the app.

The only thing that "bothers" me is you can't see profile descriptions, but it's not something that interferes with my daily use, so no big deal.

[–] [email protected] 8 points 3 months ago* (last edited 3 months ago)

The only thing I can see that would be helpful would be something that visually distinguishes that something is a spoiler; a color, a spoiler icon, etc.

Whatever I put here is your only indicationthat this is secret text

Visual cues feel important to being able to assess what I am looking at as unless I read this post, it wouldn’t have been clear to me that this is a spoiler.

Thanks for everything you do for this app. To me, it’s the Lemmy standard for a fantastic app and has made leaving Reddit simple.

[–] [email protected] 6 points 3 months ago

You are the best! Than you

[–] [email protected] 5 points 3 months ago* (last edited 3 months ago) (1 children)

Wow thats amazing! Please create a Patreon!

[–] aeharding 6 points 3 months ago (1 children)

Thanks! there's a liberapay - would people prefer Patreon?

[–] [email protected] 5 points 3 months ago

Yeah its a platform most people already use so it makes it much easier. the more options for people to donate the better

[–] [email protected] 5 points 3 months ago

Thank you! Looks great

[–] [email protected] 4 points 3 months ago* (last edited 3 months ago) (1 children)

Great job btw. I have been seeing that issue for so long and it's finally resolved. Is there any chance you can add spoiler option to the markdown toolbox in the comments window @[email protected] ?

[–] aeharding 6 points 3 months ago

Yes, that's coming soon!

[–] LazaroFilm 2 points 3 months ago* (last edited 3 months ago)

That’s amazing!

::: Dumbledore dies! :::

[–] [email protected] 1 points 3 months ago

I don't see this version on F-Droid or Aurora.