rstudio / rstudio/flexdashboard
Print options preclude the use of pagedown
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 848
- Forks
- 298
- PR merge metrics
- No merged PRs in 30d
Description
It would be quite useful to be able to print a flexdashboard to pdf as a backup method to provide the content to people.
Per this issue, https://github.com/rstudio/pagedown/issues/229, this doesn't work currently with pagedown/Chrome print and flexdashboards due to the print CSS rules in bootstrap:
@media print {
*, *:before, *:after {
background: transparent !important;
color: #000 !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
text-shadow: none !important;
}
}
Perhaps these are important for other reasons, but if there were at least an easy option in flexdashboard to override them, it would be lovely. I have evidence that I'm not the only one who would be interested in this capability.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the referenced pagedown issue and the Bootstrap @media print rules shown here. Trace how flexdashboard includes these print rules and determine an override option that preserves existing behavior while enabling pagedown/Chrome PDF output; done when a flexdashboard can be printed to PDF with its content and styling intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bootstrap, css
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100