View Single Post
Old 02-19-2022, 04:03 PM   #34
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
If ids were as sec1, sec1.1, sec1.1a etc. where I could specify a range of header tags to process e.g. H2 to H4 then after generating the XHTML TOC I could use regex to style sections like:

Code:
<a href=“./file.xhtml#sec1.1”>1.1</a> Section title</a>
I often tend to study academic or scientific works where there could be 50-100+ sections and coding as such would more easily allow annotations or highlights within the toc so I can keep track of notable sections.
democrite is offline   Reply With Quote