Skip to content

Commit ea2f0aa

Browse files
committed
Add rel="noopener noreferrer" to the links in READMEs
1 parent 57d63a2 commit ea2f0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ mod tests {
160160
let result = markdown_to_html(text).unwrap();
161161
assert_eq!(
162162
result,
163-
"<p>foo_readme\\n\\n<a href=\"https://crates.io/crates/cargo-registry\">Crate page</a></p>\n"
163+
"<p>foo_readme\\n\\n<a href=\"https://crates.io/crates/cargo-registry\" rel=\"noopener noreferrer\">Crate page</a></p>\n"
164164
);
165165
}
166166
}

0 commit comments

Comments
 (0)