Methods
-
hasHeaders()
-
Determine if the document contains any headers for TOC
- Source:
- document.js
Returns:
{headers: true}
if headers, False otherwise.- Type
- json
Example
Marked.document.hasHeaders
-
highestHeaders()
-
Return an array consisting of the 2 highest header levels in the document
- Source:
- document.js
Returns:
Array of header elements
- Type
- array
Example
Marked.document.highestHeaders()