BoldLists

Summary: recipe and tips to make bold numbers and letters in ordered lists
Version: 2009-02-03
Prerequisites: pmwiki 2.1.17
Status: stable
Maintainer:CarlosAB
Discussion: BoldLists-Talk
Categories: Lists

Questions answered by this recipe

How can I make numbers and letters in ordered lists look bold?

Description

Really simple recipe to make bold numbers and letters in ordered lists.

Notes

This should be just a tip really, because the recipe is so small. The recipe is just this:

 
$BlockMarkups['ol'] = array('<ol><li><div class="li">',
              '</div></li><li><div class="li">',
              '</div></li></ol>',1);


$HTMLStylesFmt['boldlists'] = "
  div.li{font-weight:normal}
  ol>li{font-weight:bold}
";

You can simply cut and paste this to your config.php file.

Download

boldlists.phpΔ

Release Notes

  • first release: using <span>s
  • second release: <div>s instead of <spans>s (see Petko's answer in the talk page)

Contributors

Comments

See discussion at BoldLists-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.