Table of content works on some contents while in other does not

  • Hi there,

    I use table of contents in my website and it mostly works in new articles, but when I edit the old contents, some old contents do not show the table of contents.

    Let me send some links.

    Both of the below links are after when I found out that after updating a new version, I can use H2 to H3 or H4 tags to have table of contents, so for SEO-benefits I edit my articles.

    https://pythonlearner.ir/artic…-title-%D9%88-capitalize/

    This is the article worked fine after I edited that.

    https://pythonlearner.ir/artic…%DA%86%DB%8C%D8%B3%D8%AA/

    But this is not correct.

    The way I use in all my articles:

    Code
    <h2><strong>Some Titles</strong></h2>

    I did these steps: cleared WSC cache, my browser cache, and even empties /tmp within the server (to assure if anything is there for WSC, gets removed) but did not solve my problem.

    Do you have any ideas or solutions?


    Thanks in advance

  • Hello,


    The table of contents is only generated for 3 or more headings, your second article contains only two headings and thus the generation is suppressed.

    Alexander Ebert
    Senior Developer WoltLab® GmbH