From 5ac5bc8fc25456704b85ef2eb664008f06e490d6 Mon Sep 17 00:00:00 2001 From: Tiffceet Date: Sat, 5 Aug 2023 16:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20sample=20code=20in=20RE?= =?UTF-8?q?ADME=20(#204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix: the given font example wasnt working - fix: image converted to base64 should be printed into template unescaped --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ec766c..7e5c6e5 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ const dataURI = 'data:image/jpeg;base64,' + base64Image nodeHtmlToImage({ output: './image.png', - html: '', + html: '', content: { imageSource: dataURI } }) ``` @@ -186,7 +186,7 @@ const html = `