From 354b0ac7ed0d9a75d936b9b04375065fad217058 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Mon, 27 Jan 2025 04:38:08 -0500 Subject: [PATCH] [infra] mardown-lint: report missing tocstop (#1818) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 722b76edbe..5c2b6b4116 100644 --- a/Makefile +++ b/Makefile @@ -101,6 +101,8 @@ markdown-toc: if grep -q '' $$f; then \ echo markdown-toc: processing $$f; \ npx --no -- markdown-toc --bullets "-" --no-first-h1 --no-stripHeadingTags -i $$f || exit 1; \ + elif grep -q '' $$f; then \ + echo markdown-toc: ERROR: '' missing from $$f; exit 1; \ else \ echo markdown-toc: no TOC markers, skipping $$f; \ fi; \