Update getting-started.md

This commit is contained in:
curiousaswin 2023-01-15 13:49:04 -06:00 committed by GitHub
parent 81ce7ed71b
commit 5d13ad3c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,10 @@ You can install `html2canvas` through npm or [download a built release](https://
```javascript ```javascript
import html2canvas from 'html2canvas'; import html2canvas from 'html2canvas';
``` ```
##cdn
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.js" integrity="sha512-sn/GHTj+FCxK5wam7k9w4gPPm6zss4Zwl/X9wgrvGMFbnedR8lTUSLdsolDRBRzsX6N+YgG6OWyvn9qaFVXH9w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
```
## Usage ## Usage
To render an `element` with html2canvas with some (optional) [options](/configuration/), simply call `html2canvas(element, options);` To render an `element` with html2canvas with some (optional) [options](/configuration/), simply call `html2canvas(element, options);`