fix error in init(): write "- [chapter 1](...)" to SUMMARY.md instead of "[chapter 1](...)" note the lack of dash at the beginning
This commit is contained in:
parent
7fa5b06ccb
commit
60e47d2e08
|
@ -78,7 +78,7 @@ impl MDBook {
|
||||||
if let Ok(mut f) = summary {
|
if let Ok(mut f) = summary {
|
||||||
try!(writeln!(f, "# Summary"));
|
try!(writeln!(f, "# Summary"));
|
||||||
try!(writeln!(f, ""));
|
try!(writeln!(f, ""));
|
||||||
try!(writeln!(f, "[Chapter 1](./chapter_1.md)"));
|
try!(writeln!(f, "- [Chapter 1](./chapter_1.md)"));
|
||||||
|
|
||||||
let mut chapter_1 = File::create(&src.join("chapter_1.md")).unwrap();
|
let mut chapter_1 = File::create(&src.join("chapter_1.md")).unwrap();
|
||||||
try!(writeln!(chapter_1, "# Chapter 1"));
|
try!(writeln!(chapter_1, "# Chapter 1"));
|
||||||
|
|
Loading…
Reference in New Issue