Jump to content

MediaWiki:Gadget-autonum.js: Difference between revisions

Set number as data attribute instead of inline text, and display via CSS before pseudo-element. This matches the way it works on pages without TOC. This is also fixes the issue of gadgets reading text from headings, reported by @JWBTH, Talk:Snippets/Auto-number_headings#c-JWBTH-20240722135600-Wrap_numbers_in_a_class.
 
m 1 revision imported: Initial Setup
 
(No difference)