From 7392f97aae1320ab87bc0c89af75c2e8d45e4391 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Sun, 6 Oct 2024 11:02:59 -0400 Subject: [PATCH] Add line break - When actually view with an md viewer, like inlyne, add a line break after each back link. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index db9dfd2..750a774 100644 --- a/src/main.rs +++ b/src/main.rs @@ -231,7 +231,7 @@ async fn create_back_links(output_dir: &str, this_day: &DateTime) -> Resu .with_context(|| format!("Could not parse {day} as date!"))?; let first = first.trim_start_matches(&format!("# {} - ", day.format("%Y-%m-%d"))); let link = format!( - "[{} - {}](diary:{})", + "[{} - {}](diary:{}) ", (day - *this_day).to_relative(), first.trim(), b.trim_end_matches(".md")