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

Hans design5 at softflow.co.uk
Wed Mar 23 11:39:21 CDT 2011


Wednesday, March 23, 2011, 2:49:21 PM, Patrick R. Michaud wrote:

> This is why I proposed the !![[#heading]] markup -- it remains
> consistent with the existing TextSection() function.  Yes, an author
> would need to put an anchor on the next heading (or otherwise a [[#headingend]]
> to mark the end of the section).

Ok, I think I understand now:
The !![[#heading]] markup looks like heading markup plus anchor
markup, but produces only a heading tag with an id, with the
advantage that the anchor markup in the source can be used
with the TextSection function.

But if a text section is retrieved through that, are not the
initial !! missing?

What might be more useful is an anchor preceding a heading.
Then it could be use to extract text including the heading,
with suitable id.

It could even be extended to generate a link for starting a
section edit. I am thinking of automatic display of FoxEdit
links when authorised to edit pages, which need anchors or
PTVs to grab text; I was playing with this just a short while
ago.


  ~Hans




More information about the pmwiki-users mailing list