Skip to content

Commit

Permalink
Add [TOC] to alert message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonbase59 committed Apr 5, 2024
1 parent f395db9 commit 55e7f07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gh-toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ function tocIt(inputMD, minHeading, maxHeading, fullMD, addAnchors, useID) {
if (!changed) {
alert("Cannot insert Table of Contents, missing one or both of\n"
+ "<!-- ToC begin -->\n<!-- ToC end -->\n"
+ "These should be exactly as shown.");
+ "These should be exactly as shown.\n"
+ "You can also use a single [TOC] instead.");
}
}

Expand Down

0 comments on commit 55e7f07

Please sign in to comment.