SectionManager(cm, preview)

Class SectionManager
manage logical markdown content sections

new SectionManager(cm, preview)

Creates an instance of SectionManager.

Parameters:
Name Type Description
cm CodeMirror

codemirror

preview Preview

preview

Members

_currentSection :object

current working section needs making section list

_sectionList :Array.<object>

section list

Methods

getSectionList() → {Array.<object>}

getSectionList
return section list

Returns:
Array.<object> -

section object list

makeSectionList()

makeSectionList
make section list

sectionByLine(line) → {object}

_sectionByLine
get section by markdown line

Parameters:
Name Type Description
line number

markdown editor line number

Returns:
object -

section

sectionMatch()

sectionMatch
make preview sections then match section list with preview section element