Skip to content

Commit c44c514

Browse files
committed
Fix comment
Signed-off-by: Chengwei Yang <[email protected]>
1 parent 725e400 commit c44c514

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gh-md-toc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
# 2. Discard rows where no substring 'user-content-' (github's markup):
1010
# awk '/user-content-/ { ...
1111
#
12-
# 3.1 Get last number in each row like ' ... </span></a>sitemap.js</h1>'.
13-
# It's a level of the current header (NF — number of fields):
14-
# substr($NF, length($NF)-1, 1)
12+
# 3.1 Get last number in each row like ' ... </span></a>sitemap.js</h1'.
13+
# It's a level of the current header:
14+
# substr($0, length($0), 1)
1515
#
1616
# 3.2 Get level from 3.1 and insert corresponding number of spaces before '*':
17-
# sprintf("%*s", substr($NF, length($NF)-1, 1)*2, " ")
17+
# sprintf("%*s", substr($0, length($0), 1)*2, " ")
1818
#
1919
# 4. Find head's text and insert it inside "* [ ... ]":
2020
# substr($0, match($0, /a>.*<\/h/)+2, RLENGTH-5)

0 commit comments

Comments
 (0)