Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Editor: Display an item in Table of Contents when only one heading added #3648
You need to add at least 2 heading to the document to see them listed in the table of contents. This PR tries to fix that. It also adds unit tests which will prevent regression in the future.
How Has This Been Tested?
Manually + newly created unit tests.
Screenshots (jpeg or gifs if applicable):
Types of changes
Bug fix (non-breaking change which fixes an issue)
@@ Coverage Diff @@ ## master #3648 +/- ## ========================================== + Coverage 36.91% 37.15% +0.24% ========================================== Files 275 275 Lines 6629 6629 Branches 1201 1202 +1 ========================================== + Hits 2447 2463 +16 + Misses 3530 3517 -13 + Partials 652 649 -3