ReverseHeadings

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


looks like this doesn't work yet in PmWiki 2
10 December 2004

See Cookbook.ReverseHeadings. --Pm 2004-12-10

Question

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:

    $DoubleBrackets['/^(!{1,6})/e'] = 
      'substr("!!!!!!!",strlen("$1"))';

Contributors

  • Pm, 19-Mar-2004

Notes

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

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

results in

one bang

two bangs

three bangs

pmwiki-2.2.138 -- Last modified by {{Pm}}

from IP: 85.171.160.186 ip should be disabled by default for security reasons