TextileParser molests divs
The lift-textile parser seems to totally molest divs - disrespecting them as block elements and surrounding them with <p> tags. This makes microformats (important!) impossible.
For example:
<div class="vcard">
<div class="fn">Joe Doe</div>
<div class="org">The Example Company</div>
<div class="tel">604-555-1234</div>
<a class="url" href="http://example.com/">http://example.com/</a>
</div>
This should pass through completely unmolested. And it does both here:
http://www.textism.com/tools/textile/
and
http://redcloth.org/
On lift-textile, the result is:
<p><div><br></br> <div>Joe Doe</div><br></br> <div>The Example Company</div><br></br> <div>604-555-1234</div><br></br> <a class="url" href="<a href="http://example.com/">http://example.com/</a>"><a href="http://example.com/">http://example.com/</a></a></div></p>
Thank you!
For example:
<div class="vcard">
<div class="fn">Joe Doe</div>
<div class="org">The Example Company</div>
<div class="tel">604-555-1234</div>
<a class="url" href="http://example.com/">http://example.com/</a>
</div>
This should pass through completely unmolested. And it does both here:
http://www.textism.com/tools/textile/
and
http://redcloth.org/
On lift-textile, the result is:
<p><div><br></br> <div>Joe Doe</div><br></br> <div>The Example Company</div><br></br> <div>604-555-1234</div><br></br> <a class="url" href="<a href="http://example.com/">http://example.com/</a>"><a href="http://example.com/">http://example.com/</a></a></div></p>
Thank you!
Leave a comment
on 2010-02-06 19:52 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/290/find