Update Typst Version to Latest
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@ argon2 = "0.5"
|
||||
futures-util = "0.3"
|
||||
ecow = "0.2"
|
||||
|
||||
typst = { version = "0.14.2", path = "../typst/crates/typst" }
|
||||
typst = { version = "0.15.1", path = "../typst/crates/typst" }
|
||||
typst-kit = { path = "../typst/crates/typst-kit", features = ["system-downloader", "system-packages", "embedded-fonts"] }
|
||||
typst-pdf = { path = "../typst/crates/typst-pdf" }
|
||||
typst-render = { path = "../typst/crates/typst-render" }
|
||||
@@ -31,7 +31,7 @@ typst-layout = { path = "../typst/crates/typst-layout" }
|
||||
yrs = "0.18.8"
|
||||
yrs-axum = "0.8"
|
||||
|
||||
typst-assets = { version = "0.14.2", features = ["fonts"] }
|
||||
typst-assets = { version = "0.15.1", features = ["fonts"] }
|
||||
tokio-stream = "0.1.18"
|
||||
tempfile = "3.27.0"
|
||||
sha2 = "0.10"
|
||||
|
||||
@@ -3,7 +3,8 @@ use serde::Serialize;
|
||||
use std::collections::HashMap;
|
||||
use typst::diag::{SourceDiagnostic, Warned};
|
||||
use typst::layout::{Frame, FrameItem};
|
||||
use typst_html::HtmlDocument;
|
||||
use typst::utils::Scalar;
|
||||
use typst_html::{HtmlDocument, HtmlOptions};
|
||||
use typst_layout::PagedDocument;
|
||||
use typst_pdf::{pdf, PdfOptions};
|
||||
use typst_render::{render, RenderOptions};
|
||||
@@ -168,7 +169,7 @@ impl TypstCompiler {
|
||||
} => {
|
||||
if let Some(page) = doc.pages().first() {
|
||||
let options = RenderOptions {
|
||||
pixel_per_pt: 2.0,
|
||||
pixel_per_pt: Scalar::new(2.0),
|
||||
..RenderOptions::default()
|
||||
};
|
||||
let pixmap = render(page, &options);
|
||||
@@ -219,7 +220,7 @@ impl TypstCompiler {
|
||||
}
|
||||
};
|
||||
|
||||
match typst_html::html(&document) {
|
||||
match typst_html::html(&document, &HtmlOptions::default()) {
|
||||
Ok(html) => Ok(html),
|
||||
Err(errors) => {
|
||||
use typst::WorldExt;
|
||||
|
||||
Reference in New Issue
Block a user