Tufte-style HTML with table in margin

I think you're getting outside of what tint and tufte can handle in the margins. You can get part of the way there by forcing html output on kable, but that produces extra <p> tags. Even if those are removed manually from the final HTML output, the "margin" gets way too wide, implying to me that the CSS isn't really set up to handle tables in the margin.

You might have better luck with a different table package, but I don't think there's going to be any straightforward way to handle it. @yihui would have the most definitive answer, though.

---
title: "Tint with table in margin"
output: 
  tint::tintHtml:
    keep_md: yes
    self_contained: no
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo=FALSE, message=FALSE)
```

Here is an inline attempt:

`r tint::margin_note(knitr::kable(head(subset(mtcars, select = c("mpg", "cyl"))), format = "markdown"))`

And a second:

`r tint::margin_note(knitr::kable(head(subset(mtcars, select = c("mpg", "cyl"))), format = "html"))`

Did it work?

Not really.