extend markdown function