Open ggrossetie opened 2 years ago
It might be possible to use page.setContent to load the HTML page: https://github.com/puppeteer/puppeteer/blob/v13.6.0/docs/api.md#pagesetcontenthtml-options
page.setContent
This strategy would allow to avoid writing an HTML file on disk.
Related: https://github.com/Mogztter/asciidoctor-web-pdf/issues/130
It only works when the HTML document does not contain any linked local ressources (even if the path is absolute). It's also not possible to refresh a preview 😞
It might be possible to use
page.setContent
to load the HTML page: https://github.com/puppeteer/puppeteer/blob/v13.6.0/docs/api.md#pagesetcontenthtml-optionsThis strategy would allow to avoid writing an HTML file on disk.
Related: https://github.com/Mogztter/asciidoctor-web-pdf/issues/130