diff --git a/components/rendering/src/markdown.rs b/components/rendering/src/markdown.rs index 4181c2dcb3..460cbbde37 100644 --- a/components/rendering/src/markdown.rs +++ b/components/rendering/src/markdown.rs @@ -93,6 +93,8 @@ fn fix_link( if is_external_link(link) { external_links.push(link.to_owned()); link.to_owned() + } else if link == "#" { + link.to_string() } else if link.starts_with("#") { // local anchor without the internal zola path if let Some(current_path) = context.current_page_path {