Update knit2post function.