format history
refine history markdown format