Thread:Extension talk:Pdf Export/Crash for customized TOC

Sometimes if we specify something like this: Because the getPageHtml function will add a magic word to eliminate the TOC before parsing it to the converter, the customized TOC will not be eliminated. Therefore, custom TOC will be printed and floating TOC will crash the export. I am looking for a possible fix.