···28pin-project = "1.1.10"
29dynosaur = "0.2.0"
30async-trait = "0.1.88"
31+smol_str = { version = "0.3", features = ["serde"] }
32reqwest = { version = "0.12.7", default-features = false, features = [
33 "json",
34 "rustls-tls",
+2-2
crates/weaver-renderer/src/code_pretty.rs
···9/// This requires an external stylesheet, also generated by syntect to be loaded by the page.
10/// The syntect SyntaxSet is also provided, so that it is not re-created on every call.
11pub fn highlight<M>(
12- syn_set: SyntaxSet,
13 lang: Option<&str>,
14 code: impl AsRef<str>,
15 writer: &mut M,
···3334 let mut html_gen = ClassedHTMLGenerator::new_with_class_style(
35 lang_syn,
36- &syn_set,
37 ClassStyle::SpacedPrefixed { prefix: CSS_PREFIX },
38 );
39 for line in LinesWithEndings::from(code.as_ref()) {
···9/// This requires an external stylesheet, also generated by syntect to be loaded by the page.
10/// The syntect SyntaxSet is also provided, so that it is not re-created on every call.
11pub fn highlight<M>(
12+ syn_set: &SyntaxSet,
13 lang: Option<&str>,
14 code: impl AsRef<str>,
15 writer: &mut M,
···3334 let mut html_gen = ClassedHTMLGenerator::new_with_class_style(
35 lang_syn,
36+ syn_set,
37 ClassStyle::SpacedPrefixed { prefix: CSS_PREFIX },
38 );
39 for line in LinesWithEndings::from(code.as_ref()) {
···27pub mod atproto;
28pub mod base_html;
29pub mod code_pretty;
030pub mod static_site;
031pub mod types;
32pub mod utils;
33pub mod walker;
···27pub mod atproto;
28pub mod base_html;
29pub mod code_pretty;
30+pub mod css;
31pub mod static_site;
32+pub mod theme;
33pub mod types;
34pub mod utils;
35pub mod walker;