mozilla/kuma — pull request #614 by darkwing (2012-09-24 17:10:51+00:00)
Title: fix bug  788548 - Update anchor listing logic

https://bugzilla.mozilla.org/show_bug.cgi?id=788548

To spot check:

1. Create a document with a bunch of headings
2. Save it
3. Click "Edit" button
4. Click the link dialog button, choose "Link Type" -> "Link to anchor in the text"
5. You should see a listing of anchors.