Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gambhiro committed Nov 8, 2024
1 parent ac81695 commit b229044
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/renderer/html_handlebars/hbs_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ impl HtmlHandlebars {
.insert("git_repository_edit_url".to_owned(), json!(edit_url));
}

let content = utils::render_markdown(&ch.content,
ctx.html_config.smart_punctuation(),
ctx.html_config.footnote_backrefs);
let content = utils::render_markdown(
&ch.content,
ctx.html_config.smart_punctuation(),
ctx.html_config.footnote_backrefs,
);

let fixed_content = utils::render_markdown_with_path(
&ch.content,
Expand Down Expand Up @@ -170,10 +172,11 @@ impl HtmlHandlebars {
.to_string()
}
};
let html_content_404 =
utils::render_markdown(&content_404,
html_config.smart_punctuation(),
html_config.footnote_backrefs);
let html_content_404 = utils::render_markdown(
&content_404,
html_config.smart_punctuation(),
html_config.footnote_backrefs,
);

let mut data_404 = data.clone();
let base_url = if let Some(site_url) = &html_config.site_url {
Expand Down

0 comments on commit b229044

Please sign in to comment.