Skip to content

Commit

Permalink
bug/issue 1305 ToC headings sometimes missing (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 authored Nov 8, 2024
1 parent 079efdb commit 842b2c2
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 842b2c2

Please sign in to comment.