I found the solution. The issue was addressed in pagedown documentation.

https://github.com/rstudio/pagedown/issues/147

Add this css code chunk in your rmd file.

```{css, echo=FALSE}

.pagedjs_page:not(:first-of-type) {

background: white;

}

.pagedjs_page:not(:first-of-type) {

--sidebar-width: 0rem;

--sidebar-background-color: #ffffff;

--main-width: calc(var(--content-width) - var(--sidebar-width));

--decorator-horizontal-margin: 0.2in;

}

```

Passionate about Dataviz | Mathviz | Machine Learning using R. In quest to help SME’s to leverage the power of data.

Love podcasts or audiobooks? Learn on the go with our new app.