In the rmarkdown version of this algorithm (https://github.com/rstudio/rmarkdown/blob/master/R/html_dependencies.R#L128-L131), the `meta` and `head` information from the dependencies are aggregated rather than replaced--should we do that here?