Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

ReverseHeadings

Summary: Reverse !'s so that more !'s are larger headings
Version: 2004-10-12
Prerequisites: pmwiki-2.0.0
Status: Stable
Maintainer: Pm
Categories: Markup
Votes:
Questions answered by this recipe

How can I change PmWiki's interpretation of the ! (heading) markup, so that more !'s result in larger headings?

Answer

Add the following to a local customization file:

    Markup('^!', 'block', '/^(!{1,6})(.*)$/e',
      "'<:block><h'.(7-strlen('$1')).PSS('>$2</h').(7-strlen('$1')).'>'");
Contributors
  • Pm, 2004-03-19, updated for V2 2004-10-12
Notes

This page has the ReverseHeadings recipe applied, so that more !'s result in larger headings.

!one bang
!!two bangs
!!!three bangs
one bang
two bangs

three bangs

See Also
Edit - History - Print - Recent Changes - Search
Page last modified on February 15, 2007, at 12:17 PM