Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A rough little HTML document outliner in JavaScript
Branch: master

Making note of a possible tweak.

latest commit 0f64f25836
Dylan Fogarty-MacDonald authored



After reading about document outlines in this post and spending a bit of time browsing entries I thought I could try to write a document outliner in 140 bytes. Well, I haven't done that yet, but I'd still like to. I spent a little bit of time doing some sketchy hacking and then thought I'd move it to a Github repo and try to get it to follow the spec - once that is done, I'll see if I can make it tiny.

So, for the time being this is rough and incomplete. Hopefully it'll become something worth a look soon. Maybe a bookmarklet can come out of it.


  1. Set up some tests - try to make them comprehensive and covering the document outline algorithm (I'll need to get the tests checked to make sure they're correct).
  2. Focus on developing the outline generator bit, ignoring the existing code for displaying the generated outline.
  3. Once that works correctly and the tests pass, try to get it small.
  4. Investigate making a bookmarklet.


  • No CoffeeScript or external dependencies (I feel like I've ignored just plain ol' JS lately).
  • Play with some ES5 things.
  • Make something remotely useful.
  • Make a bookmarklet (for the 1st time).
Something went wrong with that request. Please try again.