Update Typst Version to Latest

This commit is contained in:
2026-07-19 12:15:52 -04:00
parent 185d7ccdcb
commit 843c0c8eb3
6 changed files with 24 additions and 23 deletions
+4 -3
View File
@@ -2,8 +2,9 @@ use serde::Serialize;
use std::collections::HashMap;
use typst::diag::Warned;
use typst::layout::{Frame, FrameItem};
use typst::utils::Scalar;
use typst::WorldExt;
use typst_html::HtmlDocument;
use typst_html::{HtmlDocument, HtmlOptions};
use typst_layout::PagedDocument;
use typst_pdf::{pdf, PdfOptions};
use typst_render::{render, RenderOptions};
@@ -174,7 +175,7 @@ pub fn export_png(
warnings: _,
} => {
let options = RenderOptions {
pixel_per_pt: 2.0,
pixel_per_pt: Scalar::new(2.0),
..RenderOptions::default()
};
match document.pages().first() {
@@ -207,7 +208,7 @@ pub fn export_html(
} => return Err(collect_diagnostics(&world, &source_text, errors)),
};
typst_html::html(&document)
typst_html::html(&document, &HtmlOptions::default())
.map(|html| html.into_bytes())
.map_err(|errors| collect_diagnostics(&world, &source_text, errors))
}