From 04c0ed0ade5dd9730f8cd3a96a1e98b26c10be6c Mon Sep 17 00:00:00 2001 From: Endi Date: Tue, 14 May 2019 23:55:35 +0700 Subject: [PATCH] fix: right TOC should not strip special chars (#1458) * fix: right TOC should not strip special chars * nits --- packages/docusaurus-1.x/lib/core/toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-1.x/lib/core/toc.js b/packages/docusaurus-1.x/lib/core/toc.js index 9ee9a704575a..d413367d5f99 100644 --- a/packages/docusaurus-1.x/lib/core/toc.js +++ b/packages/docusaurus-1.x/lib/core/toc.js @@ -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,