diff --git a/gh-md-toc b/gh-md-toc index ae787a5..427ff1c 100755 --- a/gh-md-toc +++ b/gh-md-toc @@ -9,12 +9,12 @@ # 2. Discard rows where no substring 'user-content-' (github's markup): # awk '/user-content-/ { ... # -# 3.1 Get last number in each row like ' ... sitemap.js'. -# It's a level of the current header (NF — number of fields): -# substr($NF, length($NF)-1, 1) +# 3.1 Get last number in each row like ' ... sitemap.js.*<\/h/)+2, RLENGTH-5)