mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-13 00:03:57 +02:00
chore: minor typo cleanup (#6324)
* chore: minor typo cleanup * fix tests Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
217b62682d
commit
02a233a221
19 changed files with 26 additions and 26 deletions
|
@ -46,7 +46,7 @@ export default function search(node: Node): TOCItem[] {
|
|||
});
|
||||
});
|
||||
|
||||
// Keep track of which previous index would be the current heading's direcy parent.
|
||||
// Keep track of which previous index would be the current heading's direct parent.
|
||||
// Each entry <i> is the last index of the `headings` array at heading level <i>.
|
||||
// We will modify these indices as we iterate through all headings.
|
||||
// e.g. if an ### H3 was last seen at index 2, then prevIndexForLevel[3] === 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue