Skip to content

Commit

Permalink
fix: right TOC should not strip special chars (#1458)
Browse files Browse the repository at this point in the history
* fix: right TOC should not strip special chars

* nits
  • Loading branch information
endiliey committed May 14, 2019
1 parent a0089aa commit f84abfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-1.x/lib/core/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f84abfe

Please sign in to comment.