Ticket #56 (closed defect: fixed)

Opened 11 months ago

Last modified 3 months ago

Single paragraph following a PRE in an LI is not marked up as a paragraph

Reported by: deveiant Owned by: deveiant
Milestone: Bugfixes Component: MarkdownSyntax
Version: 2.0.0 Severity: normal
Keywords: unordered list item indent pre after paragraph Cc: matt@…

Description

Paraphrased from Matt Neuberg in  ruby-talk:333476:

puts BlueCloth.new("
* testing

        pre

    more li
").to_html

outputs:

<ul>
<li><p>testing</p>

<pre><code>pre
</code></pre>

more li</li>
</ul>

The more li line should be wrapped in a P. If you either remove one space from the PRE line so that it becomes a P or add an additional line to the input, the line does get wrapped in a P.

Change History

Changed 3 months ago by deveiant

  • status changed from new to closed
  • resolution set to fixed

Fixed sometime in a Discount version prior to 1.5.8; added a spec for it in r3A617e767c1331.

Note: See TracTickets for help on using tickets.