Skip to content

Commit

Permalink
Catch test blocks at ends of md files
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaoverton committed Feb 7, 2024
1 parent 19bab7f commit 8840e75
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ private List<String> extractCommands(File docFile) throws IOException {
}
}
}
// Catch test blocks at the end of the file.
if (collecting && collected != null) {
commands.add(collected);
}

return commands;
}
Expand Down

0 comments on commit 8840e75

Please sign in to comment.