python-textile icon indicating copy to clipboard operation
python-textile copied to clipboard

Repeating list modifiers output incorrect HTML

Open aeby opened this issue 13 years ago • 2 comments

If the input is something like this:

text="First line\n\n** Point 1\n* Point2\nLast line"
print textile.textile_restricted(text)

The output looks like this:

<p>First line</p>

<p> <ul>
    <li>Point 1</li>
</ul></li>
<ul>
    <li>Point2</li>
</ul><br />Last line</p>

Its the same for #, - and *. The behavior is the same for two or any more repeating.

aeby avatar Sep 27 '11 08:09 aeby

Can be reproduced on http://www.textism.com/tools/textile/

hupf avatar Feb 20 '12 13:02 hupf

Currently the code gives this:

>>> print(textile.textile_restricted(text))
    <p>First line</p>

    <p>** Point 1
* Point2<br />
Last line</p>

Is this what you would expect? But http://txstyle.org/try/ also gives the simple list.

sebix avatar Feb 06 '16 16:02 sebix