fix: remove extra class (#2246)

This commit is contained in:
Yugang Cao 2022-01-23 16:00:19 +08:00 committed by GitHub
parent 6338ace1a4
commit 9b9ab497cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ function genPageAnchorTemplate (tokens) {
.map((token) => token.text)
const links = titles.map((title) => {
const href = title.replace(/ /g, '-')
return `<n-anchor-link class="n-ellipsis" title="${title}" href="#${href}"/>`
return `<n-anchor-link title="${title}" href="#${href}"/>`
})
return genAnchorTemplate(links.join('\n'), { ignoreGap: true })
}