Skip to content

Commit

Permalink
fix: right TOC should not strip special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed May 14, 2019
1 parent a0089aa commit 8d95c54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/api-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ The same script can be invoked using npm:
npm run start
```


### `/<context>/status`

To run a particular script, just replace the `start` command in the examples above with the command associated with your script.

## Using arguments
Expand Down
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 8d95c54

Please sign in to comment.