--
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;
}
```