Skip to content

Commit a13279e

Browse files
mwczKeats
authored andcommitted
ignore links to '#' (#1756)
1 parent 821fa38 commit a13279e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/rendering/src/markdown.rs

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ fn fix_link(
9696
if is_external_link(link) {
9797
external_links.push(link.to_owned());
9898
link.to_owned()
99+
} else if link == "#" {
100+
link.to_string()
99101
} else if link.starts_with("#") {
100102
// local anchor without the internal zola path
101103
if let Some(current_path) = context.current_page_path {

0 commit comments

Comments
 (0)