Add line break
- When actually view with an md viewer, like inlyne, add a line break after each back link.
This commit is contained in:
parent
9ba049d021
commit
7392f97aae
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ async fn create_back_links(output_dir: &str, this_day: &DateTime<Local>) -> Resu
|
||||||
.with_context(|| format!("Could not parse {day} as date!"))?;
|
.with_context(|| format!("Could not parse {day} as date!"))?;
|
||||||
let first = first.trim_start_matches(&format!("# {} - ", day.format("%Y-%m-%d")));
|
let first = first.trim_start_matches(&format!("# {} - ", day.format("%Y-%m-%d")));
|
||||||
let link = format!(
|
let link = format!(
|
||||||
"[{} - {}](diary:{})",
|
"[{} - {}](diary:{}) ",
|
||||||
(day - *this_day).to_relative(),
|
(day - *this_day).to_relative(),
|
||||||
first.trim(),
|
first.trim(),
|
||||||
b.trim_end_matches(".md")
|
b.trim_end_matches(".md")
|
||||||
|
|
Loading…
Reference in a new issue