[Pmwiki-users] Maximum <h6>

Thomas -Balu- Walter list+pmwiki-users
Fri Jan 30 08:03:12 CST 2004


Just a minor thing I've just added to pmwiki.php at about line 786 
to avoid people creating <h13> with using many '!'s

$h="h".(strlen($match[1])<=6 ? strlen($match[1]) : '6');

I've done that, because I have structured my page using the header-tags:
        <h1> is the main page title
        <h2> is subtitle and to structure the page for not CSS-Browsers
             (CSS-Browsers use display:none)
So the Wiki-Headers should start using <h3>:

$h="h".(2+strlen($match[1])<=6 ? 2+strlen($match[1]) : '6');

And suddenly I had <h7> and <h8> :-).

Any idea how to avoid making the above change (+2) in the pmwiki.php
file directly? I guess that's not possible right now, is it?

     Balu



More information about the pmwiki-users mailing list