MarkdownPreview($el, eventManager, convertor, isViewer, delayTime)

Class Markdown Preview

new MarkdownPreview($el, eventManager, convertor, isViewer, delayTime)

Creates an instance of MarkdownPreview.

Parameters:
Name Type Description
$el jQuery

base jQuery element

eventManager EventManager

event manager

convertor Convertor

convertor

isViewer boolean

true for view only mode

delayTime Number

lazyRunner delay time

Extends

Methods

getHTML() → {string}

get html string

Returns:
string -
  • html preview string
Inherited From:

isVisible() → {boolean}

Is Preview visible

Returns:
boolean -

result

Inherited From:

refresh(markdown)

Refresh rendering

Parameters:
Name Type Description
markdown string

Markdown text

Inherited From:

protected render(html)

Render HTML on preview

Parameters:
Name Type Description
html string

HTML string

Overrides:

setHeight(height)

Set preview height

Parameters:
Name Type Description
height number

Height for preview container

Inherited From:

setHTML(html)

set html string

Parameters:
Name Type Description
html string

html preview string

Inherited From:

setMinHeight(minHeight)

set min height

Parameters:
Name Type Description
minHeight number

min height

Inherited From: