• Parse a HTML string for headings.

    Notes

    The html string is not sanitized - use with caution

    Parameters

    • html: string

      HTML string to parse

    • force: boolean = true

      Whether to ignore HTML headings with class jp-toc-ignore and tocSkip or not

    Returns IHTMLHeading[]

    Extracted headings