From cd2a9e554d34b214863ce97f62119eed40236094 Mon Sep 17 00:00:00 2001 From: Julie Blanc Date: Wed, 22 Apr 2026 10:47:47 +0200 Subject: [PATCH] add counters to toc level-1 --- js/counters.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/counters.js b/js/counters.js index 153e1e4..77749c2 100644 --- a/js/counters.js +++ b/js/counters.js @@ -56,6 +56,7 @@ export default class counters extends Handler { h2Count = 0; // reset h2 const originalText = el.innerHTML; el.innerHTML = `${this.toUpperAlpha(h1Count)}${originalText}`; + el.setAttribute('data-counter', this.toUpperAlpha(h1Count)); break; case 'h2':