add smart and self.contained options to html_document