Skip to content

Commit

Permalink
docs: chore fixes to get started
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Oct 3, 2023
1 parent 9221a23 commit 4ef85dc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/cookery/get-started.typ
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ renderer.init({}).then(...);

There are several templates for developing typst.ts with Node.js:

- #link("https://github.com/Myriad-Dreamin/typst.ts/tree/main/packages/templates/node.js-next")[Use renderer, with typescript configured with:]
- #link("https://github.com/Myriad-Dreamin/typst.ts/tree/main/packages/templates/node.js")[Use renderer, with typescript configured with:]
```json { "moduleResolution": "Node" }``` or #linebreak()
```json { "moduleResolution": "Node10" }```
- #link("https://github.com/Myriad-Dreamin/typst.ts/tree/main/packages/templates/node.js-next")[Use renderer, with typescript configured with:]
```json { "moduleResolution": "Node16" }``` or #linebreak()
```json { "moduleResolution": "NodeNext" }```
- #link("https://github.com/Myriad-Dreamin/typst.ts/tree/main/packages/templates/ts-node-next")[Use ts-node, with typescript configured with:]
- #link("https://github.com/Myriad-Dreamin/typst.ts/tree/main/packages/templates/ts-node")[Use ts-node, with typescript configured with:]
```json { "moduleResolution": "Node" }``` or #linebreak()
```json { "moduleResolution": "Node10" }```
- #link("https://github.com/Myriad-Dreamin/typst.ts/tree/main/packages/templates/ts-node-next")[Use ts-node, with and typescript configured with:]
Expand Down Expand Up @@ -164,7 +164,7 @@ renderer.init({
}).then(...);
```

You can load them in several ways:
You can load `__wasm_module_resource__` in several ways:

```ts
// from url
Expand Down Expand Up @@ -195,3 +195,5 @@ const getModule = async () => {/* above four ways */};
== Configure and run renderer <run-renderer>

- Configure font resources, same as compiler.

=== Full Code Listing

0 comments on commit 4ef85dc

Please sign in to comment.