generate markdown with code