From 9f395a122d6cd66170c363a3ef50871d8d4a25b2 Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 3 Feb 2022 21:54:58 +0100 Subject: horizontal rule --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 9085649..80f0f83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -377,7 +377,10 @@ fn write_readme_content(file: &mut File, in_path: &Path, raw_path: &Path) // cheap markdown 2 html converter for line in readme.split('\n') { - if line.starts_with("###") { + if line.starts_with("---") { + file.write_all(format!(r##" +
"##).as_bytes())?; + } else if line.starts_with("###") { let heading = line.get(4..).unwrap(); let heading_sanitized = sanitize(heading.to_string()); -- cgit 1.4.1