mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +00:00
Flag TOCs that don't have the proper bullet style
This commit is contained in:
parent
826fe7d78d
commit
3515086be1
@ -5,10 +5,10 @@
|
|||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [Background](#background)
|
* [Background](#background)
|
||||||
- [Summary](#summary)
|
* [Summary](#summary)
|
||||||
- [Syntax](#syntax)
|
* [Syntax](#syntax)
|
||||||
- [Semantics](#semantics)
|
* [Semantics](#semantics)
|
||||||
|
|
||||||
## Background
|
## Background
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ export const files = glob.sync('**/*.md', {
|
|||||||
// Returns the index of the first `*` in `markdown`'s table of contents, or
|
// Returns the index of the first `*` in `markdown`'s table of contents, or
|
||||||
// `null` if `markdown` doesn't include a table of contents.
|
// `null` if `markdown` doesn't include a table of contents.
|
||||||
function findStartIndex (markdown) {
|
function findStartIndex (markdown) {
|
||||||
var match = markdown.match(/Table of Contents\n*\*/)
|
var match = markdown.match(/\n## Table of Contents\n/)
|
||||||
if (match == null) return null
|
if (match == null) return null
|
||||||
return match.index + match[0].length - 1
|
return match.index + match[0].length - 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user