Namespaces
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()
-
onComplete()
-
Bind panel interactions once spellcheck completes.
- Source:
- spellCheckDocument.js
-
onResults(results)
-
Render a spellcheck result row as each result arrives.
Parameters:
Name Type Description resultsObject Spellcheck result payload.
- Source:
- spellCheckDocument.js
Type Definitions
-
FindRunCallback(ok)
-
Parameters:
Name Type Description okboolean True when a query was valid and search executed.
- Source:
- find.js
-
FindSearchState
-
Type:
- Object
- Source:
- find.js
Properties:
Name Type Description querystring regexboolean caseSensitiveboolean wordsOnlyboolean -
SpeedReadToken
-
Type:
- Object
- Source:
- speedread.js
Properties:
Name Type Argument Description textstring Token text displayed in RSVP.
topnumber <optional>
Absolute document top offset for sync scrolling.
paragraphIndexnumber <optional>
Paragraph ordinal in source document.
paragraphStartIndexnumber <optional>
Token index where paragraph starts.
-
SplitTokenDisplay
-
Type:
- Object
- Source:
- speedread.js
Properties:
Name Type Description prestring Characters before anchor letter.
anchorstring Anchor letter (ORP) character.
poststring Characters after anchor letter.