We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a094c commit 852d427Copy full SHA for 852d427
gh-md-toc
@@ -143,6 +143,12 @@ gh_toc(){
143
local toc=`echo "$rawhtml" | gh_toc_grab "$gh_src_copy"`
144
echo "$toc"
145
if [ "$need_replace" = "yes" ]; then
146
+ if grep -Fxq "<!--ts-->" $gh_src && grep -Fxq "<!--te-->" $gh_src; then
147
+ echo "Found markers"
148
+ else
149
+ echo "You don't have <!--ts--> or <!--te--> in your file...exiting"
150
+ exit 1
151
+ fi
152
local ts="<\!--ts-->"
153
local te="<\!--te-->"
154
local dt=`date +'%F_%H%M%S'`
0 commit comments