[pmwiki-users] capital first letters
Joachim Durchholz
jo at durchholz.org
Thu Jun 30 08:23:32 CDT 2005
Hans wrote:
>
> ## firstcap markup
> Markup('firstcap','block','/^([[:upper:]])(.*)$/',
> '<:block><p class=\'firstcap\'>$1$2</p>');
>
> #Styling for the first (initial) Capital letter of a paragraph:
> HTMLStylesFmt[] = "
> p.firstcap:first-letter {
> font-family: Georgia, serif;
> font-size: 170%;
> padding-right: 2px; }
> ";
You shouldn't have to set font-family here - you'll want whatever font
family is set for the paragraph.
> It delivers <p class='firstcap'> ... </p>
> so no spans here!
Excellent!
Regards,
Jo
More information about the pmwiki-users
mailing list