Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
goreliu committed Sep 2, 2017
1 parent 48fa04a commit e5efbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maketoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for filename (*Zsh-开发指南(第*md) {
for i (${(f)"$(grep "^###" $filename)"}) {
local level=${i%% *}
local subtitle=${i#$level }
[[ $level == "####" ]] && level="- "
level=${level/"####"/- }
echo "$level [$subtitle]("$filename"#${${${(L)subtitle// /-}//、}//:})"
}

Expand Down

0 comments on commit e5efbcc

Please sign in to comment.