Home Reference Source
public class | source

Markdown

Extends:

Queueable → Markdown

Example:

//

Method Summary

Public Methods
public

makeHtml(pid: number, json: object)

Convert MD to HTML to display

Inherited Summary

From class Queueable
public

queue: *

public
public

finished(pid: *, mode: *)

Call this method after you command has finished.

public

init(queue: *)

init, override this for any promise based inits setting the self.ready=true after the promise

public

set(pid: *, value: *)

public

start(pid: *, command: *, json: *)

Called from queue, starts running the actual command

Public Methods

public makeHtml(pid: number, json: object) source

Convert MD to HTML to display

Params:

NameTypeAttributeDescription
pid number

Process ID

json object

queue arguments

json.md string

Markdown string

json.name string

memory name to set with the html

json.options string

Options to pass to showdown see: https://github.com/showdownjs/showdown/wiki/Showdown-options

Example:

markdown.makeHtml({"md":"{{!memory.select.value.properties.description}}","options":{"openLinksInNewWindow":true}});