From 7f2fcb7d20483895ca728f994525bda80616955e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 19 Jun 2020 18:23:55 +0100 Subject: [PATCH] README.md: update-readme-toc: add autogeneration warning Signed-off-by: Ian Jackson --- README.md | 2 ++ markdown-toc-filter | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce632da..e134d38 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ $ nailing-cargo build Documentation table of contents ------------------------------- + + * [Introduction](#nailing-cargo) * [Installing](#installing) * [Most basic example usage](#most-basic-example-usage) diff --git a/markdown-toc-filter b/markdown-toc-filter index 8bb87f7..526275d 100755 --- a/markdown-toc-filter +++ b/markdown-toc-filter @@ -35,6 +35,10 @@ if (1..(m/^[A-Z]/ && m/table of contents/i)) { } END { - print "\n", @toc, "\n"; + print < + +END print @doc; } -- 2.30.2