diff --git a/Cargo.lock b/Cargo.lock index a2fe11e..ca191dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1908,7 +1908,7 @@ checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" [[package]] name = "snekdown" -version = "0.30.3" +version = "0.30.4" dependencies = [ "asciimath-rs", "base64 0.12.3", diff --git a/Cargo.toml b/Cargo.toml index e31e511..5b80594 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snekdown" -version = "0.30.3" +version = "0.30.4" authors = ["trivernis "] edition = "2018" license-file = "LICENSE" diff --git a/src/references/configuration/mod.rs b/src/references/configuration/mod.rs index c406b90..335f5cc 100644 --- a/src/references/configuration/mod.rs +++ b/src/references/configuration/mod.rs @@ -1,7 +1,7 @@ use crate::elements::MetadataValue; use crate::references::configuration::keys::{ - BIB_REF_DISPLAY, META_LANG, PDF_FOOTER_TEMPLATE, PDF_HEADER_TEMPLATE, PDF_MARGIN_BOTTOM, - PDF_MARGIN_TOP, + BIB_REF_DISPLAY, META_LANG, PDF_DISPLAY_HEADER_FOOTER, PDF_FOOTER_TEMPLATE, + PDF_HEADER_TEMPLATE, PDF_MARGIN_BOTTOM, PDF_MARGIN_TOP, }; use crate::references::templates::Template; use serde::export::TryFrom; @@ -83,7 +83,11 @@ impl Default for Configuration { self_config.set(META_LANG, Value::String("en".to_string())); self_config.set(PDF_MARGIN_BOTTOM, Value::Float(0.5)); self_config.set(PDF_MARGIN_TOP, Value::Float(0.5)); - self_config.set(PDF_HEADER_TEMPLATE, Value::String("
".to_string())); + self_config.set(PDF_DISPLAY_HEADER_FOOTER, Value::Bool(true)); + self_config.set( + PDF_HEADER_TEMPLATE, + Value::String("
".to_string()), + ); self_config.set( PDF_FOOTER_TEMPLATE, Value::String(