I'm trying compiling the whole little book as one .md file to become one .html file on GitHub Pages. If I find that acceptable, it'll save me some yak-shaving building a splitter. Maybe I'll do that later.
I'd like to put a little table of contents at the top of the document, with internal hyperlinks to the heading of the various "chapters".
Now it turns out that GitHub pages does set the id on every H2 H3 etc, so I happen to know that this would work:
Code: Select all
[Some Chapter Name](#some-chapter-name)
So one option is to generate a list of chapter names, regex the heck out of them in Sublime, and paste them in at publication time. That's not too awful.
Are there other options that would help generate these links more quickly and more automatically? Pointers to stuff to read are welcome.