Top level functions
- Source:
- main.js
Requires
- Marked.bookmarks
- Marked.config
- Marked.collapsible
- Marked.criticmarkup
- Marked.docProgress
- Marked.handlers
- Marked.highlightNav
- Marked.inclusions
- Marked.message
- Marked.multicolumn
- Marked.print
- Marked.spellcheck
- Marked.statusBar
- Marked.syntax
- Marked.theme
- Marked.toc
- Marked.typography
- Marked.util
- Marked.wordRepetition
- Marked.wordCount
- Marked.zoom
Methods
-
init()
-
Main window initialization
- Source:
- main.js
Example
Marked.main.init()
-
prefsInit()
-
Initialize general preferences and associated body classes
- Source:
- main.js
Example
Marked.main.prefsInit();
-
update()
-
Trigger an update of preferences and config
- Source:
- main.js
Example
Marked.main.update();
-
updatePreview(obj)
-
Update preview window with encoded HTML string
Parameters:
Name Type Description obj
object Object with {source, base, bodyClasses}
- Source:
- main.js