If I understand the use case he's describing it's not one currently covered by Heuristics. That said, next time I get back to tweaking that it's a potential test case to add, but one that works pretty differently from the existing function as you wouldn't want to wrap those lines in H2 tags.
XPATH with Regex is about the only thing that would work, but all the TOC entries would then be a paragraph long.
|