Resolve "TOC has more content attached in some cases [was #14468]"

Closes #12 (closed)

Edited by Simon Sendler

Merge request reports