diff --git a/src/render.rs b/src/render.rs
index 55c0451..3161d60 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -286,8 +286,16 @@ fn render_entry(entry: &Entry, config: &Config) -> String {
} else {
String::new()
};
+ let voice_note_html = if !entry.meta.voice_note.is_empty() {
+ format!(
+ "\n",
+ escape_html(&entry.meta.voice_note)
+ )
+ } else {
+ String::new()
+ };
format!(
- "\n{header}\n{drawing_html}\n{body}\n\n{}\n",
+ "\n{header}\n{drawing_html}{voice_note_html}\n{body}\n\n{}\n",
config.separator
)
}
@@ -593,6 +601,37 @@ mod tests {
assert!(html.contains("