docs: fix anchor link in readme
This commit is contained in:
parent
2b2aff30cb
commit
ff86a42343
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue