What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

A user in http://scifi.stackexchange.com/a/14928/1913 discovered that he couldn't create a spoiler unordered list, and I can't seem to either.

I can blockquote an unordered list without any real issue:

  • 1
  • 2

Or the following (similar to the solution in Spoiler markdown shows up as normal blockquote):

  • 1
  • 2

However, if I introduce a spoiler, it breaks:

!- 1 - 2

Or:

- 1 - 2

I've tried nesting blockquotes, which doesn't seem to help either. Is this a bug? If not, how in tarnation do I create a spoiler-wrapped unordered list using Markdown?

share|improve this question
3  
I suspect we're not supposed to be doing that. I usually restrict myself to plain text without markup in spoilers, to avoid any problems. The spoiler syntax was a pretty late addition, it's not part of the Markdown spec as far as I know. –  Mad Scientist Apr 16 '12 at 16:07
    
Should this be feature-request, then? –  Ian Pugsley Apr 16 '12 at 16:08
    
Possibly...Since the >! thing is a custom extension, I suspect the Markdown parser gets tripped up by what it sees as a stray !...not sure off hand what could reasonably be done about that. I'd have to check the code to see if that's the issue to begin with, though. –  Tim Stone Apr 16 '12 at 16:14
    
For what it's worth, you can successfully use raw HTML a la <ul><li></li></ul>. It's a bit ugly though, as it introduces empty paragraph tags and is less pleasant to maintain. –  Tim Stone Apr 16 '12 at 16:35

1 Answer 1

May be you could do something like this.

  • Create the ordered/unordered list.
  • Then introduce the spoiler markdown on each line.
  • Then wrap the ordered list with pre tag.

Not the prettiest solution but at least a workaround.

1.One
2.Two
3.Three
- One
- Two
- Three

Spoiler with ordered or unordered list

share|improve this answer

You must log in to answer this question.

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