Use htmltools to extract/restore preserve chunks