Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tinymist/feature/preview.typ
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ tinymist preview /abs-path/to/main.typ --partial-rendering
If the document is compiled by lsp, you can use `sys.inputs` to get the preview arguments:

```typ
#let preview-args = json.decode(sys.inputs.at("x-preview", default: "{}"))
#let preview-args = json(bytes(sys.inputs.at("x-preview", default: "{}")))
```

There is a `version` field in the `preview-args` object, which will increase when the scheme of the preview arguments is changed.
Expand Down
Loading