#204 ✓invalid
Nando Vieira

CSS Class on Lists

Reported by Nando Vieira | January 3rd, 2011 @ 07:59 PM

Just found out that RedCloth4 don't apply CSS class on lists:

*(mylist) item 1
* item 2
* item 3

This Textile should generate a <ul class="mylist"/> tag (according to http://textism.com/tools/textile/index.php ), but is generating <ul><li class="mylist">item 1</li>...</ul>.

Comments and changes to this ticket

  • Jason Garber

    Jason Garber January 3rd, 2011 @ 10:50 PM

    • State changed from “new” to “invalid”

    This is one of the few places where PHP Textile and RedCloth diverge and it's intentional. To style an entire class, put the class before the list. To style a single list item (any), put it after the asterisk.

    (mylist)* item 1
    * item 2
    * item 3

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket