yihui / xaringan

Presentation Ninja 幻灯忍者 · 写轮眼
https://slides.yihui.org/xaringan/
Other
1.49k stars 280 forks source link

kable displaying incorrect #63

Closed tcgriffith closed 7 years ago

tcgriffith commented 7 years ago

code:

{r results = 'asis'}

res <-cars
kable(cars)

output:

tbl_xarnigan

any suggestions on how to show a table correctly?

yihui commented 7 years ago

Perhaps kable(mtcars, format='html')?

tcgriffith commented 7 years ago

@yihui Better, but the table is rendered without border.

screenshot from 2017-08-03 11-04-49

yihui commented 7 years ago

That is because tables do not have borders by default in your browser. You need CSS, e.g. https://github.com/yihui/hugo-xmin/blob/4888812fd8e4589f14f629f40136bae507471089/static/css/style.css#L43-L50

yihui commented 7 years ago

Documented at https://slides.yihui.name/xaringan/#19