document generator for markdown doc