Give headings IDs
Convert headings to have id's with the content of the heading
Copy this code and paste it in your HTML
Find:
(<h[1-6])(>)(.+)(</h[1-6]>)
Replace:
$1 id="$3"$2$3$4
Turns
into
<h4 id="Foobar">Foobar
</h4>
Report this snippet
Comments
Subscribe to comments