posthtml / posthtml-toc

📑Table of contents
MIT License
4 stars 3 forks source link

Add tests for headings with no content #11

Closed spl closed 4 years ago

spl commented 4 years ago
spl commented 4 years ago

After #10, I realized that headings that existed but didn't have content or only had whitespace were also considered “missing,” so this change improves the error message a bit and adds tests to make sure that feature isn't affected by future changes.