Enhance markdown/html doc generation