diff --git a/samples/README.md b/samples/README.md index a73b428..1594a68 100644 --- a/samples/README.md +++ b/samples/README.md @@ -20,3 +20,8 @@ def - todo0 def - [ ] bar - [ ] baz + +## Another section + +- abc +- def diff --git a/src/scan.rs b/src/scan.rs index ef216d1..f12677e 100644 --- a/src/scan.rs +++ b/src/scan.rs @@ -333,6 +333,8 @@ pub fn scan_readme_file(path: &Path, entries: &mut Vec) -> io::Result<()> if cleaned_section == "todo" || cleaned_section == "todos" { in_todo_section = true; + } else { + in_todo_section = false; } continue;