@wdprlib/decompiler
    Preparing search index...

    Function recognizeHeading

    • Recognize an <h1><h6> element as a heading container.

      The heading level is derived from the tag name. A toc-prefixed id attribute indicates that the heading participates in the table of contents. Wikidot wraps heading content in a <span>, which is unwrapped here.

      Parameters

      Returns Element