Allow heading output to have decorated id's

Simple tiny change to allow intercepting the lexer results to
decorate the headings in the parser with potentially unique id's.

would be useful for bulk processing of a tree of .md and/or deep linking
to a section via #hash in rendered output