Implement custom Toc parser to find custom Heading tokens (Bug #12233).