|
Cookbook /
ReverseHeadingsSummary: 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 recipeHow can I change PmWiki's interpretation of the ! (heading) markup, so that more !'s result in larger headings? AnswerAdd the following to a local customization file: Markup('^!', 'block', '/^(!{1,6})(.*)$/e',
"'<:block><h'.(7-strlen('$1')).PSS('>$2</h').(7-strlen('$1')).'>'");
Contributors
NotesThis page has the ReverseHeadings recipe applied, so that more !'s result in larger headings.
See Also
|