Testing

52 readers
1 users here now

This is the sidebar for this community.

Testing badge markdown

Generic SVG

founded 1 year ago
MODERATORS
76
1
Test (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
77
1
Test (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
78
1
Test (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
79
1
Test (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
80
1
Test (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
81
1
Test (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
82
1
Spoiler (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
 
 

Hi

This is a spoiler headingThis is a spoiler body.

Bye

83
3
Reply to me! (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
84
1
Username (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
85
1
submitted 1 year ago* (last edited 11 months ago) by darklightxi to c/testing
 
 

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

86
 
 

Testing badge markdown

Generic SVG

87
88
89
90
91
1
Images (self.testing)
submitted 1 year ago by ThunderDevTesting to c/testing
92
2
submitted 1 year ago* (last edited 1 year ago) by darklightxi to c/testing
 
 

Testing general functionality for creating a new post.

Edit: Testing edits again with loading indicator again

93
1
Language Test (self.testing)
submitted 1 year ago* (last edited 1 year ago) by darklightxi to c/testing
94
0
submitted 1 year ago* (last edited 1 year ago) by darklightxi to c/testing
 
 

Testing another edit

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

95
1
submitted 1 year ago* (last edited 1 year ago) by ThunderDevTesting to c/testing
96
1
New Links (self.testing)
submitted 1 year ago* (last edited 1 year ago) by ThunderDevTesting to c/testing
 
 

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: @[email protected] and a community [email protected].

This is a markdown link.

97
0
New Post (self.testing)
submitted 1 year ago by darklightxi to c/testing
 
 

Testing new post!

98
1
Test3 (self.testing)
submitted 1 year ago* (last edited 1 year ago) by ThunderDevTesting to c/testing
 
 

Test3

99
3
Links (self.testing)
submitted 1 year ago* (last edited 10 months ago) by ThunderDevTesting to c/testing
100
0
Test (reddthat.com)
submitted 1 year ago by [email protected] to c/testing
 
 

Test

view more: ‹ prev next ›