diff --git a/README.md b/README.md index b634050..6a73624 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ - [TODO](#todo) - [License](#license) -

logo

mtoc 📄

diff --git a/docs/README.md b/docs/README.md index 7443e92..5e54861 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,7 +4,6 @@ - [Hello!!](#hello!!) - [Hellooooo!!!](#hellooooo!!!) - # Hi! ## Hello!! diff --git a/docs/test.md b/docs/test.md index 6562197..636f1bf 100644 --- a/docs/test.md +++ b/docs/test.md @@ -4,7 +4,6 @@ - [Test 2](#test-2) - [Test 3](#test-3) - # Test 1 ## Test 2 diff --git a/src/write.rs b/src/write.rs index 6dbb5c1..fbb6d03 100644 --- a/src/write.rs +++ b/src/write.rs @@ -10,7 +10,7 @@ pub fn generate_toc(headers: Vec<(usize, String)>) -> String { let anchor = header.to_lowercase().replace(" ", "-"); toc.push_str(&format!("{}- [{}](#{})\n", indent, header, anchor)); } - toc.push_str("\n"); + toc.push_str(""); toc }