|
@ -18,10 +18,9 @@ function parseMd() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function removeMdToc(text) { |
|
|
function removeMdToc(text) { |
|
|
out = [] |
|
|
|
|
|
|
|
|
var out = [] |
|
|
lines = text.match(/[^\r\n]+/g); |
|
|
lines = text.match(/[^\r\n]+/g); |
|
|
console.log(lines) |
|
|
console.log(lines) |
|
|
return text |
|
|
|
|
|
insideContents = false |
|
|
insideContents = false |
|
|
for (line of lines) { |
|
|
for (line of lines) { |
|
|
if (line.trim() === 'Contents') { |
|
|
if (line.trim() === 'Contents') { |
|
@ -33,7 +32,7 @@ function removeMdToc(text) { |
|
|
out.push(line) |
|
|
out.push(line) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return out |
|
|
|
|
|
|
|
|
return text |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function insertLinks() { |
|
|
function insertLinks() { |
|
|