mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 19:43:47 +00:00 
			
		
		
		
	help: Add a dedicated page on how to format spoiler blocks.
This commit is contained in:
		| @@ -76,25 +76,9 @@ whenever you need a reminder of the formatting syntax below. | |||||||
|  |  | ||||||
| ## Spoilers | ## Spoilers | ||||||
|  |  | ||||||
| You can use spoilers to hide content that you do not want to be visible until | {!spoilers-intro.md!} | ||||||
| the user interacts with it. |  | ||||||
|  |  | ||||||
|  | {!spoilers-examples.md!} | ||||||
| ~~~ |  | ||||||
| Normal content in message |  | ||||||
|  |  | ||||||
| ```spoiler Spoiler header |  | ||||||
| Spoiler content. These lines won't be visible until the user expands the spoiler. |  | ||||||
| ``` |  | ||||||
| ~~~ |  | ||||||
|  |  | ||||||
| The spoiler will initially display in a collapsed form: |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| Clicking the arrow will expand the spoiler content: |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| ## Emoji and emoticons | ## Emoji and emoticons | ||||||
|  |  | ||||||
|   | |||||||
| @@ -68,6 +68,7 @@ | |||||||
| * [Bulleted and numbered lists](/help/bulleted-and-numbered-lists) | * [Bulleted and numbered lists](/help/bulleted-and-numbered-lists) | ||||||
| * [Code blocks](/help/code-blocks) | * [Code blocks](/help/code-blocks) | ||||||
| * [LaTeX](/help/latex) | * [LaTeX](/help/latex) | ||||||
|  | * [Spoilers](/help/spoilers) | ||||||
| * [Create a poll](/help/create-a-poll) | * [Create a poll](/help/create-a-poll) | ||||||
| * [Start a video call](/help/start-a-call) | * [Start a video call](/help/start-a-call) | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										28
									
								
								help/include/spoilers-examples.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								help/include/spoilers-examples.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | |||||||
|  | ### What you type | ||||||
|  |  | ||||||
|  | ~~~ | ||||||
|  |  | ||||||
|  | ```spoiler The spoiler heading might summarize what's inside | ||||||
|  | This content is initially hidden. | ||||||
|  |  | ||||||
|  | > You can combine spoilers with other formatting. | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | A message can contain both spoilers and other content. | ||||||
|  |  | ||||||
|  | ```spoiler | ||||||
|  | Leave the heading blank if you like. | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | ~~~ | ||||||
|  |  | ||||||
|  | ### What it looks like | ||||||
|  |  | ||||||
|  | Collapsed spoilers: | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Expanded spoilers: | ||||||
|  |  | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								help/include/spoilers-intro.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								help/include/spoilers-intro.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | Zulip lets you temporarily hide content in a collapsible **spoiler** section, | ||||||
|  | with only the header initially shown. Clicking on the header reveals the hidden | ||||||
|  | content. | ||||||
							
								
								
									
										13
									
								
								help/spoilers.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								help/spoilers.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | |||||||
|  | # Spoilers | ||||||
|  |  | ||||||
|  | {!spoilers-intro.md!} | ||||||
|  |  | ||||||
|  | ## Examples | ||||||
|  |  | ||||||
|  | {!spoilers-examples.md!} | ||||||
|  |  | ||||||
|  | ## Related articles | ||||||
|  |  | ||||||
|  | * [Message formatting](/help/format-your-message-using-markdown) | ||||||
|  | * [Preview messages before sending](/help/preview-your-message-before-sending) | ||||||
|  | * [Resize the compose box](/help/resize-the-compose-box) | ||||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 39 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 67 KiB | 
		Reference in New Issue
	
	Block a user