Leaflet maps not appearing in tabbed HTML document output from Rmarkdown

This seems to be related to this issue raised in the leaflet package and reference in this Community post. I'd suggest adding your example code as a new issue https://github.com/rstudio/leaflet/issues/new