Flag TOCs that don't have the proper bullet style

This commit is contained in:
Natalie Weizenbaum 2020-11-23 17:15:08 -08:00
parent 826fe7d78d
commit 3515086be1
2 changed files with 5 additions and 5 deletions

View File

@ -5,10 +5,10 @@
## Table of Contents
- [Background](#background)
- [Summary](#summary)
- [Syntax](#syntax)
- [Semantics](#semantics)
* [Background](#background)
* [Summary](#summary)
* [Syntax](#syntax)
* [Semantics](#semantics)
## Background

View File

@ -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
}