diff --git a/render/src/render.rs b/render/src/render.rs index 1ae9da2c..aacc9e11 100644 --- a/render/src/render.rs +++ b/render/src/render.rs @@ -55,6 +55,14 @@ impl<'a> Context<'a> { } fn new(doc: &'a Document, format: OutputFormatKind) -> Self { + if doc.citations.is_empty() { + return Context { + doc, + rendered_citations: vec![], + footnotes: "".to_string(), + bibliography: "".to_string(), + }; + } let rendered_citations: Vec; let footnotes: String; let bibliography: String;