Namespace: main

Marked. main

Top level functions

Source:
main.js

Requires

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