From a25a5a84636752f537017310a38bad1906535527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 27 Nov 2023 02:57:28 +0100 Subject: [PATCH] fix readme scanner --- samples/README.md | 5 +++++ src/scan.rs | 2 ++ 2 files changed, 7 insertions(+) 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;