Thread: regex question
View Single Post
Old 11-21-2014, 10:53 AM   #9
Paulie_D
Connoisseur
Paulie_D began at the beginning.
 
Paulie_D's Avatar
 
Posts: 67
Karma: 10
Join Date: Apr 2011
Device: Kindle 3, Samsung Tab 4
Quote:
Originally Posted by theducks View Post
It may be 'proper' coding, bet it fails the Auto-TOC job

Test
Some Sub header
(both are essentially the same location)

is not what is desired in a TOC, especially on a smaller screen
Oh...I agree...if you know you're breaking the "rules" for a specific reason then it's not a biggie but I do think it's worth noting.

That said, couldn't a function be written to combine two distinct elements into a single TOC item?

Dunno, just asking..I'm still a novice at regex.

Regardless, the TOC 'link' would still be the same point (the H1) so you'd still arrive at the same place wouldn't you?
Paulie_D is offline   Reply With Quote