I know that spoiler tags don't support all the same kind of Markdown that block quotes do, specifically lists and paragraph breaks. So, I was trying to use HTML to produce the effect that I wanted, which was a bulleted list inside a spoiler.

The effect I got looked a bit strange -- there was excess space at the top and bottom of the spoiler block. so, I examined the HTML it was producing and noticed that it was creating what I'll call "dodgy" HTML. In particular, it's producing extra paragraph tags before and after the embedded HTML. Even more strange, if there's additional text after the HTML, it's not being wrapped in a<p> tag, but there's an empty <p> tag anyway.

It's probably easier to show. If I include this markup in my post:

>! <ul><li>This list is weird</li></ul>

then the HTML includes empty paragraphs before/after the HTML, which means unwanted white space inside the spoiler:

<blockquote class="spoiler">
  <p> </p><ul><li>This list is weird</li></ul><p></p>

If I actually include header/footer text, it gets even stranger:

>! Header <ul><li>List Item</li></ul> Footer

the resulting HTML that I get is:

<blockquote class="spoiler">
  <p> Header </p><ul><li>List Item</li></ul> Footer<p></p>

In particular, note the placement of the "Footer" text, which seems to be confusing Chrome:

enter image description here


Given a markdown list:

* [cftransaction](https://wikidocs.adobe.com/wiki/display/coldfusionen/cftransaction)
* [Understanding the Available Transaction Isolation Levels](http://msdn.microsoft.com/en-us/library/cc546518.aspx)
* [Asynchronous Programming in JavaScript with Promises](http://blogs.msdn.com/b/ie/archive/2011/09/11/asynchronous-programming-in-javascript-with-promises.aspx)
* [How Transactional Replication Works](http://technet.microsoft.com/en-us/library/aa179423)
* [Transaction Process Synchronization](http://technet.microsoft.com/en-us/library/cc977035.aspx)
* [Optimistic Algorithm](http://courses.cs.vt.edu/~cs5204/fall99/distributedDBMS/wen/notes.html)
* [Concurrency Control Algorithms](http://www.telerik.com/help/openaccess-classic/concurrency-control-algorithms.html)
* [Configuring Serializable Isolation](http://download.oracle.com/berkeley-db/docs/je/1.7.1/GettingStartedGuide/serializable.html)
* [Improving concurrency with new registry variables](http://www.ibm.com/developerworks/data/library/techarticle/dm-0509schuetz/)
* [Operating Systems Lecture Notes: Allocation and Deadlock](http://bluehawk.monmouth.edu/~rclayton/web-pages/s12-os/resourcemgt.html)
* [SQLite File I/O Specification](http://www.sqlite.org/fileio.html)
* [Broken promises–C++0x futures ](http://bartoszmilewski.com/2009/03/03/broken-promises-c0x-futures/)
* [concurrent.futures — Launching parallel tasks](https://docs.python.org/dev/library/concurrent.futures.html)
* [Javascript Is Awesome: I don't want promises](http://javascriptisawesome.blogspot.com/2012/12/i-dont-want-promises.html)
* [JavaScript Asynchronous Architectures: Events vs. Promises](http://www.joezimjs.com/javascript/javascript-asynchronous-architectures-events-vs-promises/)
* [AS3 Promises - a guide and example](https://cwiki.apache.org/confluence/display/FLEX/AS3+Promises+-+a+guide+and+example)
* [Smalltalk Concurrency, Playing With Futures](http://onsmalltalk.com/smalltalk-concurrency-playing-with-futures)
* [promise-streams](https://github.com/spion/promise-streams)
* [System.Threading.TTask.Future](http://docwiki.embarcadero.com/Libraries/Seattle/en/System.Threading.TTask.Future#Description)
* [Promises Part 5: The Lego Problem](http://blog.getify.com/promises-part-5/)
* [Callbacks vs Events](http://dean.edwards.name/weblog/2009/03/callbacks-vs-events/)
* [Events and Callbacks](http://msdn.microsoft.com/en-us/library/ms229041)
* [Events vs. Callbacks – when to use what](http://www.ghost23.de/2010/10/events-vs-callbacks-when-to-use-which/)
* [coroutines,callbacks,message-queues - Tcl](http://wiki.tcl.tk/38429)
* [Introduction to ES6 Promises – The Four Functions You Need To Avoid Callback Hell](http://jamesknelson.com/grokking-es6-promises-the-four-functions-you-need-to-avoid-callback-hell/)
* [All about ES6 Generators](http://blog.getify.com/all-about-es6-generators/)

Run the following Find/Replace in a text editor with regex support:




>! &#8226; <a href="\2">\1</a><br>

(Use $2 and $1 instead if \2 and \1 do not work as backreferences)

to generate the equivalent spoiler version:

Understanding the Available Transaction Isolation Levels
Asynchronous Programming in JavaScript with Promises
How Transactional Replication Works
Transaction Process Synchronization
Optimistic Algorithm
Concurrency Control Algorithms
Configuring Serializable Isolation
Improving concurrency with new registry variables
Operating Systems Lecture Notes: Allocation and Deadlock
SQLite File I/O Specification
Broken promises–C++0x futures
concurrent.futures — Launching parallel tasks
Javascript Is Awesome: I don't want promises
JavaScript Asynchronous Architectures: Events vs. Promises
AS3 Promises - a guide and example
Smalltalk Concurrency, Playing With Futures
Promises Part 5: The Lego Problem
Callbacks vs Events
Events and Callbacks
Events vs. Callbacks – when to use what
coroutines,callbacks,message-queues - Tcl
Introduction to ES6 Promises – The Four Functions You Need To Avoid Callback Hell
All about ES6 Generators

You must log in to answer this question.

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