
Invalid <p> tags inserted in nested html elements.
Reported by RyanTM | March 15th, 2011 @ 08:30 PM
RedCloth adds invalid p tags in the middle of nested html. The invalid p tags get inserted in the three versions I tried (redcloth.org, 4.2.3 and the latest code)
Here are some of the simplest inputs I got to exhibit this bug:
<div><div><div></div></div></div> => <div><div><div></div><p></div></div></p>
<div><ul><li></li></ul></div> => <div><ul><li></li><p></ul></div></p>
Comments and changes to this ticket
-
RyanTM March 15th, 2011 @ 08:58 PM
- Title changed from <p> inserted in nested table to <p> inserted in <table>
-
RyanTM March 15th, 2011 @ 09:05 PM
- Title changed from <p> inserted in <table> to Invalid <p> tags inserted in nested html elements.
-
-
RyanTM March 24th, 2011 @ 01:15 PM
http://twitter.com/#!/jasongarber/statuses/50595956042907648 "@ryantm Can't fix it in the present version of RedCloth, but I've begun rewriting it in Parslet and it will be much easier to fix these!"
-
DavidEGrayson February 5th, 2013 @ 08:47 PM
Hello. I worked with RyanTM to file this bug report 22 months ago, and just wanted to say that we still care about it. This problem still exists in RedCloth 4.2.9 and the live demo on redcloth.org.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RedCloth is a Ruby library for converting Textile into HTML