[Pmwiki-users] equals indicating headings

Mark Hudson mark.2004
Fri Apr 23 09:46:28 CDT 2004


hi, folks.  New to the list.  Hope this isn't old hat, but I'd like to
propose these additions to allow equals to indicate headings, in the
interest of making pmwiki more friendly to those of us migrating from
UseModWiki:

$InlineReplacements['/^= (.*?) =/'] = "<h2>\$1</h2>";
$InlineReplacements['/^== (.*?) ==/'] = "<h2>\$1</h2>";
$InlineReplacements['/^=== (.*?) ===/'] = "<h3>\$1</h3>";
$InlineReplacements['/^==== (.*?) ====/'] = "<h4>\$1</h4>";

I think this meets most, if not all of the criteria at
http://www.pmichaud.com/wiki/Christian/Gems#criteria

If it Seems Good, then Should I just post it to the cookbook section, or
What's the chances of something like this making it into the base code?
Thanks for your consideration.

--Mark Hudson




More information about the pmwiki-users mailing list