add deserialization defaults to engine.markdown

This commit is contained in:
slonkazoid 2025-01-29 17:40:07 +03:00
parent 0fbbac6260
commit d92bf1bbea
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -126,6 +126,7 @@ pub struct MarkdownRenderConfig {
} }
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
#[serde(default)]
pub struct MarkdownConfig { pub struct MarkdownConfig {
pub root: Box<Path>, pub root: Box<Path>,
pub render: MarkdownRenderConfig, pub render: MarkdownRenderConfig,