Fixed numbering on html report
This commit is contained in:
parent
12e7ad711e
commit
b76bb49480
1 changed files with 2 additions and 2 deletions
4
build.js
4
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 -", `<span class='task'>${task_count}.</span> `);
|
||||
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 -", `<span class='task'>${task_count}.</span> `);
|
||||
task_count++;
|
||||
}
|
||||
|
||||
// let sec = "<section>"
|
||||
|
|
Reference in a new issue