uwdata / living-papers

Authoring tools for scholarly communication. Create interactive web pages or formal research papers from markdown source.
BSD 3-Clause "New" or "Revised" License
128 stars 10 forks source link

copy CSS to page used for generating PDFs #13

Closed mathisonian closed 2 years ago

mathisonian commented 2 years ago

Small addition to #12 for including the generated CSS in the puppeteer page that is used for generating the PDFs.

jheer commented 2 years ago

This is a great start, thanks! However, there remains an issue: third-party libraries (including the Observable runtime) add their own style elements to the page. So we need to gather the content of all style and stylesheet link tags and copy them over. This should be pretty straightforward so I will go ahead and make those changes.