test.js md formatting
This commit is contained in:
parent
c7c7033393
commit
9b854d84b7
4
test.js
4
test.js
@ -1,6 +1,6 @@
|
|||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
var log = '{\n'
|
var log = '{\n'
|
||||||
var issuelog = ' "message": "#### Syntax Issues\n\n Name | Entry\n----|----------------------\n'
|
var issuelog = ' "message": "#### Syntax Issues\\n\\n Name | Entry\\n----|----------------------\\n'
|
||||||
|
|
||||||
var file = fs.readFileSync(process.argv[2], 'utf8')
|
var file = fs.readFileSync(process.argv[2], 'utf8')
|
||||||
entryErrorCheck(file)
|
entryErrorCheck(file)
|
||||||
@ -25,7 +25,7 @@ function entryErrorCheck (md) {
|
|||||||
console.log(entryArray[i].name + 'Failed.')
|
console.log(entryArray[i].name + 'Failed.')
|
||||||
// entryArray[i].error = findError(entries[i]) //WIP
|
// entryArray[i].error = findError(entries[i]) //WIP
|
||||||
totalFail += 1
|
totalFail += 1
|
||||||
issuelog += entryArray[i].name + ' | ' + entries[i] + '\n'
|
issuelog += entryArray[i].name + ' | ' + entries[i] + '\\n'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user