Browse Source

RemovedMdToc disabled

pull/23/head
Jure Šorn 5 years ago
parent
commit
5200bca6b9
1 changed files with 2 additions and 3 deletions
  1. 5
      web/script.js

5
web/script.js

@ -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() {

Loading…
Cancel
Save