Summary: Reverse !'s so that more !'s are larger headings
Version: 2015-06-27
Prerequisites: pmwiki-2.2.58
Status: Stable
Maintainer: Pm, Petko
Categories: Markup, PHP55
Questions answered by this recipe

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


Add the following to a local customization file:

  Markup_e('^!', 'block', '/^(!{1,6})(.*)$/',
  • Petko, 2015-06-27, updated for PHP 5.5
  • Pm, 2004-03-19, updated for V2 2004-10-12

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

User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.