View Single Post
Old 02-20-2022, 05:57 PM   #38
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 318
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
I would try first pulling the title text out of the <a> tags via regex, leaving you with static text following an unlabeled link, then add the counter via a::before.

Code:
<a href='#target'></a>My Informative Title


Code:
a::before {
  content: counter(heading) '.' counter(subheading)  ': ';
}
Might be a start, anyway.

Last edited by phillipgessert; 02-21-2022 at 01:20 PM. Reason: added ::before pseudo element, I don't think it'd work the way I originally had it.
phillipgessert is offline   Reply With Quote