mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +00:00
Style changes
This commit is contained in:
parent
bca5235eb4
commit
9dbf71b8fa
@ -6,4 +6,4 @@ install:
|
||||
- npm ci
|
||||
|
||||
script:
|
||||
- npm test
|
||||
- npm test
|
||||
|
@ -22,16 +22,13 @@ files.forEach(function (file) {
|
||||
|
||||
console.log('Reading: ' + file)
|
||||
|
||||
var markdownToc = toc(markdown, {
|
||||
filter: (string, _, __) => string.indexOf('Table of Contents') === -1
|
||||
}).content
|
||||
// Get a list of all headers so we can verify intra-document links.
|
||||
var markdownToc = toc(markdown).content
|
||||
|
||||
results.forEach(function (result) {
|
||||
if (result.link.match(/^#/)) {
|
||||
if (!markdownToc.includes(result.link)) {
|
||||
result.status = 'dead'
|
||||
result.statusCode = 0
|
||||
}
|
||||
if (result.link.match(/^#/) && !markdownToc.includes(result.link)) {
|
||||
result.status = 'dead'
|
||||
result.statusCode = 0
|
||||
}
|
||||
|
||||
if (result.status === 'dead') {
|
||||
|
Loading…
Reference in New Issue
Block a user