Skip to content

Commit d993b18

Browse files
authored
Merge pull request #310 from QuietMisdreavus/readme-data-urls
don't render raw html or data/javascript URLs in crate readmes
2 parents 84bf37d + 3e8052d commit d993b18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/web/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ fn render_markdown(text: &str) -> String {
359359

360360
let options = {
361361
let mut options = ComrakOptions::default();
362+
options.safe = true;
362363
options.ext_superscript = true;
363364
options.ext_table = true;
364365
options.ext_autolink = true;

0 commit comments

Comments
 (0)