Table caption for html, latex and pandoc

CF. issue https://github.com/yihui/knitr/issues/657