Skip to content

Commit 15d5cf6

Browse files
committed
Bump version to 0.13.1
1 parent 68e131c commit 15d5cf6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "typst-py"
3-
version = "0.13.0"
3+
version = "0.13.1"
44
edition = "2021"
55
description = "Python binding to typst"
66
license = "Apache-2.0"

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ typst.compile("hello.typ", output="hello.pdf")
2424
# Compile `hello.typ` to PNG and save as `hello.png`
2525
typst.compile("hello.typ", output="hello.png", format="png", ppi=144.0)
2626

27+
# Or pass `hello.typ` content as bytes
28+
with open("hello.typ", "rb") as f:
29+
typst.compile(f.read(), output="hello.pdf")
30+
2731
# Or return PDF content as bytes
2832
pdf_bytes = typst.compile("hello.typ")
2933

0 commit comments

Comments
 (0)