Skip to content

Commit 0687e57

Browse files
committed
Update README.md
1 parent 918d368 commit 0687e57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ You can load this library either by using a script tag, or installing it with np
66

77
### Script tag (simple usage)
88
```html
9-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].6/dist/wypst.min.css" crossorigin="anonymous">
10-
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].6/dist/wypst.min.js" crossorigin="anonymous"></script>
9+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].8/dist/wypst.min.css" crossorigin="anonymous">
10+
<script defer src="https://cdn.jsdelivr.net/npm/[email protected].8/dist/wypst.min.js" crossorigin="anonymous"></script>
1111

1212
<script>
1313
wypst.initialize().then(() => {
@@ -33,6 +33,8 @@ await wypst.initialize(wasm);
3333
wypst.renderToString("x + y"); // Test it out!
3434
```
3535

36+
Keep in mind that you will probably need to tell your bundler how to load a `.wasm` file. If you have difficulties you can open an issue.
37+
3638
### Rendering Typst Math
3739
To render a Typst math expression, you can use either `render` or `renderToString`, as the example below shows:
3840
```javascript

0 commit comments

Comments
 (0)