Skip to content

Commit

Permalink
Merge pull request kitmatheinfo#3 from Garmelon/increase-vertical-margin
Browse files Browse the repository at this point in the history
Increase vertical margin
  • Loading branch information
I-Al-Istannen authored May 14, 2024
2 parents 69b1145 + 260f04a commit 6a944dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/typst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ impl World for DummyWorld {

pub fn render_to_png(typst: String) -> anyhow::Result<Vec<u8>> {
let typst = [
"#set page(width: 11.5cm, height: auto, margin: 0.1cm, fill: rgb(\"#313338\"))",
"#set page(width: 11.5cm, height: auto, margin: (x: 1mm, y: 2mm))",
"#set page(fill: rgb(\"#313338\"))", // Discord background color
"#set text(white)",
&typst,
]
Expand Down

0 comments on commit 6a944dc

Please sign in to comment.