Don't allow spaces before headers in nav mappings.

It breaks too often when you have code blocks with comments that
start with `#`, and no one uses spaces before headers.