Constructor
new MarkdownView()
- Source:
Extends
Members
citations :Array
An array of literature cited
Type:
- Source:
className :string
The HTML classes to use for this view's element
Type:
- Source:
events :object
The events this view will listen to and the associated function to
call.
Type:
- Source:
loadingTemplate :UnderscoreTemplate
The loading template to show while the markdown is being
converted to HTML.
Type:
- Source:
markdown :string
Markdown to render into HTML
Type:
- Source:
showTOC :boolean
Indicates whether or not to render a table of contents for this view.
If set to true, a table of contents will be shown if there two or more
top-level headers are rendered from the markdown.
Type:
- Source:
template :UnderscoreTemplate
Template for the markdown block.
Type:
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
initialize(options)
Initialize is executed when a new MarkdownView is created.
Parameters:
Name |
Type |
Description |
options |
object
|
A literal object with options to pass to the
view |
- Source:
listRequiredExtensions(markdown)
listRequiredExtensions - test which extensions are needed, then load
them
Parameters:
Name |
Type |
Description |
markdown |
string
|
The markdown string before it's converted
into HTML |
- Source:
onClose()
onClose - Close and destroy the view
- Source:
render()
- Source:
renderTOC()
Renders a table of contents (a TOCView) that links to different
sections of the MarkdownView
- Source: