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
|
||||
|
||||
- [Background](#background)
|
||||
- [Summary](#summary)
|
||||
- [Syntax](#syntax)
|
||||
- [Semantics](#semantics)
|
||||
* [Background](#background)
|
||||
* [Summary](#summary)
|
||||
* [Syntax](#syntax)
|
||||
* [Semantics](#semantics)
|
||||
|
||||
## Background
|
||||
|
||||
|
@ -9,7 +9,7 @@ export const files = glob.sync('**/*.md', {
|
||||
// Returns the index of the first `*` in `markdown`'s table of contents, or
|
||||
// `null` if `markdown` doesn't include a table of contents.
|
||||
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
|
||||
return match.index + match[0].length - 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user