chiark
/
gitweb
/
~ianmdlvl
/
nailing-cargo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
README: document trouble with tricky packages, and submodules
[nailing-cargo.git]
/
markdown-toc-filter
diff --git
a/markdown-toc-filter
b/markdown-toc-filter
index 8bb87f74d34b2d18e39a2556642cd4ff9608c4ac..526275da79b5ff7339bf70a50bec62f962d79c81 100755
(executable)
--- 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, @toc, "\n";
+
+<!-- TOC autogenerated by $0, do not edit -->
+
+END
print @doc;
}