diff --git a/docs/api-commands.md b/docs/api-commands.md index 1468d8d92d2b..e235b3508255 100644 --- a/docs/api-commands.md +++ b/docs/api-commands.md @@ -22,6 +22,9 @@ The same script can be invoked using npm: npm run start ``` + +### `//status` + To run a particular script, just replace the `start` command in the examples above with the command associated with your script. ## Using arguments 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,