Forums | Users |
Search | Signup | Login

Mixed ordered/unordered lists in textile

Subscribe to Mixed ordered/unordered lists in textile 3 post(s), 2 voice(s)

 
Avatar silasdavis 7 post(s)

I believe


# one
# two
** and a bit

Should produce:

  1. one
  2. two
    • and a bit

As it does on http://www.textism.com/tools/textile/index.php. But on unfuddle it appears to fail, and produces a sub-ordered list for “and a bit” rather than a sub-unordered one. Is this a bug?

 
Avatar silasdavis 7 post(s)

On closer examination, the html generated seems to be correct (same as textile markup). The issue seems to be with the CSS styling lists on the notebook. When I view the page with no styling the list is correctly (albeit unattractively) displayed. I think this is the offending CSS ( http://assets1.unfuddle.com/stylesheets/account.css?1217467609):


#show_page_render div.body ol li { /*Line 1298*/
list-style-type:decimal;
}

I think that using the direct descendant selector ‘>’ rather than the general one ’ ’ would fix this:


#show_page_render div.body ol>li { /*Line 1298*/
list-style-type:decimal;
}

So that only list items directly under an ordered list get decimal decoration. Currently list items at any nesting inside an <ol> get clobbered by this.

 
Avatar David C. Administrator 163 post(s)

silasdavis,

Thanks for pointing this out. It is definitely a bug. Please note that we have modified the CSS slightly to correctly format nested lists of various types and will be deploying this update shortly.