The order of end tags of list after heading in HTML doc is wrong

  • Version: v5.9.0
  • Platform: Darwin firedfox-mbp.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
  • Subsystem: doc

While using generate.js to convert a list after heading into HTML, the order of end tags is wrong.

is converted to

<h3>Heading</h3>
<div class="signature"><ul>
<li>item</li>
</div></ul>

For example:

### Class Method: Buffer.from(array)
* `array` {Array}

is converted to

<h3>Class Method: Buffer.from(array)<span><a class="mark" href="#buffer_class_method_buffer_from_array" id="buffer_class_method_buffer_from_array">#</a></span></h3>
<div class="signature"><ul>
<li><code>array</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="type">&lt;Array&gt;</a></li>
</div></ul>