Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: TOCs and deeplinks for our house rulesby RonW (Parson) |
on Oct 31, 2017 at 20:37 UTC ( [id://1202473]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Perl Monks Discussion
|
|