diff --git a/scripts/zk-gen-index b/scripts/zk-gen-index index 6887ec8..13ec007 100755 --- a/scripts/zk-gen-index +++ b/scripts/zk-gen-index @@ -2,7 +2,7 @@ toc=$(zk-gen-dir-md-toc) -echo -e "START_TOC\n$toc\n\nEND_TOC" > temp.md +echo -e "START_TOC$toc\nEND_TOC" > temp.md if [ -f index.md ]; then perl -i -p0e 's/START_TOC.*END_TOC/`cat temp.md`/se' index.md