fix: right TOC should not strip special chars (#1458)

* fix: right TOC should not strip special chars

* nits
This commit is contained in:
Endi 2019-05-14 23:55:35 +07:00 committed by GitHub
parent a0089aa9f5
commit f84abfe2d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ function getTOC(content, headingTags = 'h2', subHeadingTags = 'h3') {
if (!allowedHeadingLevels.includes(heading.lvl)) {
return;
}
const rawContent = mdToc.titleize(heading.content);
const rawContent = heading.content;
const entry = {
hashLink,
rawContent,