fix markdown description rendering
This commit is contained in:
parent
1613005115
commit
6476253d5f
2 changed files with 1 additions and 2 deletions
|
@ -41,7 +41,6 @@ impl AlbumDir {
|
|||
description = fs::read_to_string(entry_path)?;
|
||||
} else if filename == "description.md" {
|
||||
log::debug!("Loading Markdown from {}", entry_path.display());
|
||||
let mut description = String::new();
|
||||
let contents = fs::read_to_string(&entry_path)?;
|
||||
let parser = pulldown_cmark::Parser::new(&contents);
|
||||
pulldown_cmark::html::push_html(&mut description, parser);
|
||||
|
@ -68,7 +67,6 @@ impl AlbumDir {
|
|||
"Loading Markdown from {}",
|
||||
entry_path.with_extension("md").display()
|
||||
);
|
||||
let mut description = String::new();
|
||||
let contents =
|
||||
fs::read_to_string(&entry_path.with_extension("md"))?;
|
||||
let parser = pulldown_cmark::Parser::new(&contents);
|
||||
|
|
|
@ -42,6 +42,7 @@ enum Commands {
|
|||
Generate {
|
||||
/// Don't re-generate things that already exist (thumbnails, etc.)
|
||||
#[arg(long)]
|
||||
// TODO: Invert this to be a --full flag and default to quick?
|
||||
quick: bool,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue