We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc0f9d commit 5a446e4Copy full SHA for 5a446e4
components/markdown/Cargo.toml
@@ -15,7 +15,7 @@ console = { path = "../console" }
15
libs = { path = "../libs" }
16
17
typst = "0.12.0"
18
-typst-assets = "0.12.0"
+typst-assets = { version = "0.12.0", features = ["fonts"] }
19
typst-svg = "0.12.0"
20
time = { version = "0.3.37", features = ["local-offset"] }
21
flate2 = "1.0.35"
components/markdown/src/markdown.rs
@@ -597,7 +597,7 @@ pub fn markdown_to_html(
597
}
598
Event::End(TagEnd::CodeBlock { .. }) => {
599
if let Some(ref mut code_block) = code_block {
600
- let inner = accumulated_block.trim_end();
+ let inner = &accumulated_block;
601
match code_block_language.as_deref() {
602
Some("typ") => {
603
let rendered = typst.render(
0 commit comments