[pmwiki-users]SEO: Avoiding Headings in the SideBar
H. Fox
haganfox at gmail.com
Mon Aug 15 18:25:11 CDT 2005
On 8/15/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> To disable the ! markup, but leave !!, !!!, etc.:
>
> Markup('^!', 'block',
> '/^(!{2,6})\\s?(.*)$/e',
> "'<:block><h'.strlen('$1').PSS('>$2</h').strlen('$1').'>'");
How would I cause these
! Foo
!!!!! Foo
to do
<div class='someclass1'>Foo</div>
<div class='someclass5'>Foo</div>
instead of
<h1>Foo</h1>
<h5>Foo</h5>
The reason: I want to be able have an option in the Lean and Light
skins that automatically enhances SEO without forcing a markup change.
Hagan
p.s.: A numeral is permissible in a class name, but not as the first
character, correct?
More information about the pmwiki-users
mailing list