add debug option to skip PNG rendering

This commit is contained in:
hazycora 2023-08-02 17:51:06 -05:00
parent 8e5077e9be
commit 2cf7675588
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
4 changed files with 35 additions and 3 deletions

View file

@ -30,6 +30,6 @@ const renderOptions = {
]
}
export default function (html) {
export default async function (html) {
return html2png(html, css, renderOptions)
}