Skip to content

Commit e089eca

Browse files
committed
Add IDs to sections
Done using this "elegant" replacement: ```js source.replace(/(<h[1-6])>(.*?)(<\/h[1-6]>)/g, (_, p1, p2, p3) => `${p1} id=${p2.replace(/<dfn.*?>/, '').replace('</dfn>', '').toLowerCase().replace(/\s+/g, '-')}>${p2}${p3}`) ```
1 parent 97fd668 commit e089eca

File tree

1 file changed

+108
-108
lines changed

1 file changed

+108
-108
lines changed

0 commit comments

Comments
 (0)