Package: markdown
Version: 1.0.1-6
Severity: normal

Markdown seems to get confused by a div that does not contain any text,
and proceeds to treat everything until the next div as inlined html that is
thus not marked down.

[EMAIL PROTECTED]:~>cat foo
**bold**

<div class="toc"></div>

**not bold**

<div class="inlinepage">
foo
</div>

[EMAIL PROTECTED]:~>markdown foo
<p><strong>bold</strong></p>

<div class="toc"></div>

**not bold**

<div class="inlinepage">
foo
</div>


The problem can be worked around by changing the first div. Either of these
will work:

<div class="toc">
</div>

<div class="toc">foo</div>

This won't, though:

<div class="toc">    </div>

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages markdown depends on:
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 

markdown recommends no packages.

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to