I think the move of knitr:::fix_options() to after the hooks have been run, rather than before, has affected how the out.width parameter is set. I don't know why the new defaults make the figure disappear, the resulting image still has a width in the output HTML, but my understanding of the code is that we want this to be "100%" unless the user explicitly defines it in the chunk options.
This patch tries to achieve that, and includes some new unit tests to check that correct width attribute is assigned in the output HTML file.
This addresses #83
I think the move of
knitr:::fix_options()
to after the hooks have been run, rather than before, has affected how theout.width
parameter is set. I don't know why the new defaults make the figure disappear, the resulting image still has a width in the output HTML, but my understanding of the code is that we want this to be "100%" unless the user explicitly defines it in the chunk options.This patch tries to achieve that, and includes some new unit tests to check that correct width attribute is assigned in the output HTML file.