Skip to content

Commit

Permalink
Add toc class
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed Nov 23, 2020
1 parent 5e8d64d commit 6bccb23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/slightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ import MarkdownIt from "markdown-it";
li.appendChild(a);
}
while (top && top.childElementCount === 1) top = top.querySelector("ol");
top.classList.add("slightly-toc");

return top;
};
Expand Down

0 comments on commit 6bccb23

Please sign in to comment.