Skip to content

Commit

Permalink
remove arbitray shift call for toc headings
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Nov 8, 2024
1 parent f199112 commit 726ce2e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/cli/src/lifecycles/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ const generateGraph = async (compilation) => {
if (fileContents && customData.tocHeading > 0 && customData.tocHeading <= 6) {
// parse markdown for table of contents and output to json
customData.tableOfContents = toc(fileContents).json;
customData.tableOfContents.shift();

// parse table of contents for only the pages user wants linked
if (customData.tableOfContents.length > 0 && customData.tocHeading > 0) {
Expand Down

0 comments on commit 726ce2e

Please sign in to comment.