docs: fix anchor link in readme

This commit is contained in:
Nolan Lawson 2020-06-24 18:03:24 -07:00
parent 2b2aff30cb
commit ff86a42343
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Features:
<!-- toc start -->
- [emoji-picker-element](#emoji-picker-element)
- [emoji-picker-element](#emoji-picker-element-)
* [Install](#install)
* [Usage](#usage)
* [Styling](#styling)

View File

@ -11,6 +11,7 @@ async function main () {
const content = (await readFile('./README.md', 'utf8'))
.replace(TRAVIS_BADGE, '') // remove travis badge, it confuses markdown-toc
const toc = markdownToc(content).content
.replace('#emoji-picker-element', '#emoji-picker-element-') // it confuses GitHub's anchor links too
await replaceInReadme(TOC_START_MARKER, TOC_END_MARKER, toc)
}