rstudio / pagedown

Paginate the HTML Output of R Markdown with CSS for Print
https://pagedown.rbind.io
Other
892 stars 128 forks source link

Inconsistent styling for multipage table #255

Closed zenggyu closed 2 years ago

zenggyu commented 2 years ago

Related to #162. Example:

---
title: "A Multi-page HTML Document"
author: "Yihui Xie and Romain Lesur"
date: "`r Sys.Date()`"
output:
  pagedown::html_paged:
    toc: true
    # change to true for a self-contained document, but it'll be a litte slower for Pandoc to render
    self_contained: false
# uncomment this line to produce HTML and PDF in RStudio:
#knit: pagedown::chrome_print
---

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

```{r}
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(gt))
tibble(x = 1:30, y = 1:30) %>%
  gt()
```

图片

The issue is more obvious with some templates (e.g., pagedreport::paged_grid):

图片

zenggyu commented 2 years ago

Kindly pinging @felipecrp .

zenggyu commented 2 years ago

Closing this as it is a duplicate of #186.