impl document func & add styled text