[pmwiki-users] Setting an id-tag to a 2nd level heading and removing "name=" in anchor

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 22 14:18:18 CDT 2011


On Tue, Mar 22, 2011 at 02:06:11PM -0500, Patrick R. Michaud wrote:
> [...]
> This enables a markup like
>     !!#heading Heading
> to produce
>     <h2 id="heading">Heading</h2>

We might also consider modifying the default markup rules 
so that  

    !![[#heading]] Heading  

automatically puts the id into the <h2> tag.  There might
be a problem with backward compatibility though (it could
certainly be made optional).

Pm



More information about the pmwiki-users mailing list