diff --git a/gh-md-toc b/gh-md-toc index 0060ff9..9926e8a 100755 --- a/gh-md-toc +++ b/gh-md-toc @@ -143,6 +143,12 @@ gh_toc(){ local toc=`echo "$rawhtml" | gh_toc_grab "$gh_src_copy"` echo "$toc" if [ "$need_replace" = "yes" ]; then + if grep -Fxq "" $gh_src && grep -Fxq "" $gh_src; then + echo "Found markers" + else + echo "You don't have or in your file...exiting" + exit 1 + fi local ts="<\!--ts-->" local te="<\!--te-->" local dt=`date +'%F_%H%M%S'`