Skip to content

Commit 5a446e4

Browse files
committed
fix: add default fonts for typst
1 parent 4fc0f9d commit 5a446e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/markdown/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ console = { path = "../console" }
1515
libs = { path = "../libs" }
1616

1717
typst = "0.12.0"
18-
typst-assets = "0.12.0"
18+
typst-assets = { version = "0.12.0", features = ["fonts"] }
1919
typst-svg = "0.12.0"
2020
time = { version = "0.3.37", features = ["local-offset"] }
2121
flate2 = "1.0.35"

components/markdown/src/markdown.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ pub fn markdown_to_html(
597597
}
598598
Event::End(TagEnd::CodeBlock { .. }) => {
599599
if let Some(ref mut code_block) = code_block {
600-
let inner = accumulated_block.trim_end();
600+
let inner = &accumulated_block;
601601
match code_block_language.as_deref() {
602602
Some("typ") => {
603603
let rendered = typst.render(

0 commit comments

Comments
 (0)