
Classes or ids can't be specified in definition lists
Reported by Enrique Garcia (egarcia) | February 10th, 2011 @ 11:31 AM
I'd like to use RedCloth to generate some definition lists with html classes.
Original list without classes:
- coffee := Hot and black
- tea := Also hot, but a little less black
I've done the following tests:
First: add a class to the dl element
(beverages)- coffee := Hot and black
- tea := Also hot, but a little less black
Expected result: <dl
class='beverages'><dt>coffee</dt>...
Result: first line was rendered as a paragraph -
<p>(beverages)- coffee := ...</p>
. Second
line was considered the start of the help.
Second test: add a class to the dt element:
-(beverage) coffee := Hot and black
- tea := Also hot, but a little less black
Expected result: <dl><dt
class='beverage'>coffee</dt>...
Result: first line was rendered as a paragraph -
<p>-(beverage) coffee := ...</p>
. Second
line was considered the start of the help.
I didn't try to style the dd element, but I suspect I would get similar results.
No comments found
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