[pmwiki-users] using h1 tag as your title

Bronwyn Boltwood bronwyn at bronwynb.info
Sun May 14 11:03:24 CDT 2006


Here's how I turned off ! = H1 without disabling !Heading:

##  modded headings -- !h2 to !!!!!h6, no h1
Markup('^!', 'block',
  '/^(!{1,5})\\s?(.*)$/e',
  "'<:block,1><h'.(strlen('$1')+1).PSS('>$2</h').(strlen('$1')+1).'>'");

It's very rare to need more than 5 heading levels in one page, so this
works nicely.  My page titles are H1s.

-- 
"I have learned two ways to tie my shoes. One way is only good for
lying down. The other way is good for walking." -- Valentine Michael
Smith, _Stranger in a Strange Land_ by Robert A. Heinlein




More information about the pmwiki-users mailing list