Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: TOCs and deeplinks for our house rules

by RonW (Parson)
on Oct 31, 2017 at 20:37 UTC ( #1202473=note: print w/replies, xml ) Need Help??


in reply to TOCs and deeplinks for our house rules

This would be a very good idea.

In case it might be helpful, years ago, I wrote a Perl program to add TOCs to HTML. If I can find it, I will post it under CUFP.

The program looks for header elements (<h1> through <h6>) and checks them for an id attribute. If there isn't one, it adds one, using a generated identifier. The text of the header elements is used for the TOC entries, which are dt elements in a dl list element. I did not implement nesting of dl lists.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1202473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2019-05-20 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (123 votes). Check out past polls.

    Notices?