Skip to content

Commit

Permalink
Remove unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Aug 28, 2024
1 parent 9b52aba commit 5da3964
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
- [TODO](#todo)
- [License](#license)
<!-- END OF TOC -->

<p align="center" >
<img src="logo.png" alt="logo" width="250"/>
<h3 align="center">mtoc 📄</h3>
Expand Down
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
- [Hello!!](#hello!!)
- [Hellooooo!!!](#hellooooo!!!)
<!-- END OF TOC -->

# Hi!

## Hello!!
Expand Down
1 change: 0 additions & 1 deletion docs/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
- [Test 2](#test-2)
- [Test 3](#test-3)
<!-- END OF TOC -->

# Test 1

## Test 2
Expand Down
2 changes: 1 addition & 1 deletion src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("<!-- END OF TOC -->\n");
toc.push_str("<!-- END OF TOC -->");
toc
}

Expand Down

0 comments on commit 5da3964

Please sign in to comment.