Skip to content

Commit

Permalink
fix: right TOC should not strip special chars (facebook#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 authored and shakcho committed May 17, 2019
1 parent e1a7fc5 commit 04c0ed0
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 04c0ed0

Please sign in to comment.