Skip to content

Commit

Permalink
[infra] mardown-lint: report missing tocstop (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Jan 27, 2025
1 parent d9f3e97 commit 354b0ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ markdown-toc:
if grep -q '<!-- tocstop -->' $$f; then \
echo markdown-toc: processing $$f; \
npx --no -- markdown-toc --bullets "-" --no-first-h1 --no-stripHeadingTags -i $$f || exit 1; \
elif grep -q '<!-- toc -->' $$f; then \
echo markdown-toc: ERROR: '<!-- tocstop -->' missing from $$f; exit 1; \
else \
echo markdown-toc: no TOC markers, skipping $$f; \
fi; \
Expand Down

0 comments on commit 354b0ac

Please sign in to comment.