Typo.
Provide a function to build a table of contents.
Remove possible spaces between "#" and the title.

Fixes https://github.com/pw374/omd/issues/46