diff --git a/build.js b/build.js index 75b8160..0bdec13 100644 --- a/build.js +++ b/build.js @@ -185,8 +185,8 @@ function toc(str) { token.heading = opts.strip ? utils.strip(token.text, opts) : token.text; if (token.heading.indexOf("Ex -") >= 0) { - task_count++; token.heading = token.heading.replace("Ex -", `${task_count}. `); + task_count++; } // Create a "slugified" id for linking @@ -364,8 +364,8 @@ renderer.heading = function (text, level, raw, slugger) { // console.log(text); if (text.indexOf("Ex -") >= 0) { - task_count++; text = text.replace("Ex -", `${task_count}. `); + task_count++; } // let sec = "
"