7

Seems like every time I try to use the spoiler markup, I spend five minutes typing my question and twenty minutes trying to remember how to create paragraph breaks in spoiler markup.

For example, I can never remember how to make this:

One Two

look like this:

One

Two

while still preserving the spoiler hover effect.

Can we get a comprehensive guide to spoiler markup?

2 Answers 2

4

To do what you want just add two spaces at the end of the line:

>! 1
>!   
>! 2

Which renders (note that for some reason the first paragraph break renders shorter than others):

1
2

While that's particularly annoying I'm not sure there's much more to spoiler markdown. Also note if you're doing multiple paragraphs you'll need a >! to start each one off

As noted by badp, other full-line markdown (bullet points, blockquotes, numbered lists) don't work inside of spoilers, so you'll need do use raw HTML to add those if necessary.

Generally try to keep only text content in spoilers, and only so much as necessary.

1
  • 3
    Additional note: whenever you want fancy formatting inside a spoiler block, such as lists, you'll have to use HTML tags.
    – badp Mod
    Commented Jan 31, 2013 at 22:28
0

You can do this by using double spaces to create explicit newlines on two consecutive lines:

One

Two

The code is

>!One   
>!  
>!Two

And each of the first two lines has two spaces at the end

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .