Testing

46 readers
1 users here now

This is the sidebar for this community.

Testing badge markdown

Generic SVG

founded 1 year ago
MODERATORS
76
77
78
79
80
81
 
 

Hi

This is a spoiler headingThis is a spoiler body.

Bye

82
83
 
 

@test@foo.bar

84
1
submitted 10 months ago* (last edited 7 months ago) by darklightxi@lemmy.ca to c/testing@lemmy.ca
 
 

The following syntaxes work as expected (they create one spoiler tag).

The general rule here is that we allow 0-3 whitespaces before the starting colon, 3 or more colons, any number of optional whitespaces, and the "spoiler" keyword with any non-whitespace character after it.

Normal

spoilerHello!

spoilerHello!


No whitespace

spoiler with no whitespaceHello!

spoiler with no whitespaceHello!


Leading whitespace

   
titleHello!

titleHello!


Any number of whitespaces between : and "spoiler"

:::              spoiler title
Hello!
:::

::: spoiler title Hello! :::


Any number of whitespaces between "spoiler" and the first non-whitespace character

titleHello!

titleHello!


Three or more colons

::::::::::::::::::::::::              spoiler title
Hello!
::::::::::::::::::::::::

:::::::::::::::::::::::: spoiler title Hello! ::::::::::::::::::::::::



Here's where we run into some weird edge cases:

If there is an ending :::, Lemmy will consume the first instance of ::: only if ::: is on a new line with no other text (and up to 3 white spaces)

atext (no whitespaces before
) :::

atext (no whitespaces before
) :::


atext (1 whitespaces before
) :::

atext (1 whitespaces before
) :::


atext (2 whitespaces before
) :::

atext (2 whitespaces before
) :::


atext (3 whitespaces before
) :::

atext (3 whitespaces before
) :::


atext (4 whitespaces before
) :::

atext (4 whitespaces before
) :::



Lemmy doesn't need an ::: ending in order to display the spoiler. If ::: is not present, it will assume the spoiler continues until the end:

a
 spoiler a
text


Lemmy will create nested spoilers if it cannot find ::: before another ::: spoiler:

atext
spoiler b more text

atext
spoiler b more text :::



The following examples will show the ::: within the spoiler, and will make the spoilers nested

atext (4 whitespaces before
) :::

atext (4 whitespaces before
) :::


atext

atext


atext

atext


atext a

atext a

85
 
 

Testing badge markdown

Generic SVG

86
87
88
89
90
91
2
submitted 11 months ago* (last edited 10 months ago) by darklightxi@lemmy.ca to c/testing@lemmy.ca
 
 

Testing general functionality for creating a new post.

Edit: Testing edits again with loading indicator again

92
1
Language Test (lemmy.ca)
submitted 11 months ago* (last edited 11 months ago) by darklightxi@lemmy.ca to c/testing@lemmy.ca
93
0
submitted 11 months ago* (last edited 8 months ago) by darklightxi@lemmy.ca to c/testing@lemmy.ca
 
 

Testing another edit

HTTP link test: http://www.google.com/

94
1
submitted 11 months ago* (last edited 11 months ago) by ThunderDevTesting@lemmy.ca to c/testing@lemmy.ca
95
1
New Links (lemmy.ca)
submitted 11 months ago* (last edited 11 months ago) by ThunderDevTesting@lemmy.ca to c/testing@lemmy.ca
 
 

This is an inline link in a paragraph.

Check this out: https://www.audionetwork.com/ It's really cool.

This is a Lemmy link.

Check out this post: https://lemmy.ca/post/3912595

This is a Lemmy username: @thunderdevtesting@lemmy.ca and a community !testing@lemmy.ca.

This is a markdown link.

96
 
 

Testing new post!

97
1
Test3 (lemmy.ca)
submitted 1 year ago* (last edited 11 months ago) by ThunderDevTesting@lemmy.ca to c/testing@lemmy.ca
 
 

Test3

98
3
Links (lemmy.ca)
submitted 1 year ago* (last edited 6 months ago) by ThunderDevTesting@lemmy.ca to c/testing@lemmy.ca
99
 
 

Test

100
 
 

abc

view more: ‹ prev next ›