mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 09:07:29 +02:00
fix: right TOC should not strip special chars (#1458)
* fix: right TOC should not strip special chars * nits
This commit is contained in:
parent
a0089aa9f5
commit
f84abfe2d1
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ function getTOC(content, headingTags = 'h2', subHeadingTags = 'h3') {
|
||||||
if (!allowedHeadingLevels.includes(heading.lvl)) {
|
if (!allowedHeadingLevels.includes(heading.lvl)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const rawContent = mdToc.titleize(heading.content);
|
const rawContent = heading.content;
|
||||||
const entry = {
|
const entry = {
|
||||||
hashLink,
|
hashLink,
|
||||||
rawContent,
|
rawContent,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue