this should in principle be possible. Please note that if you are specifying the CSS file in the header you shouldn't repeat it in the argument to BiocStyle::markdown, and you probably need to explicitly set toc: yes