Lib module

Methods

(async, static) renderer() → {object}

Renderer for marked. It overrides the default renderer to use custom tags for many elements.

Returns:

Renderer methods

Type: 
object

(inner) paragraph(options) → {string}

Render a paragraph

Parameters:
NameTypeDescription
optionsObject

Options object

Properties
NameTypeDescription
textstring

Paragraph text

tokensArray

Inline tokens

Returns:

HTML output

Type: 
string

(inner) table(options) → {string}

Render a table

Parameters:
NameTypeDescription
optionsObject

Options object

Properties
NameTypeDescription
headerArray

Table header

rowsArray

Table rows

Returns:

HTML output

Type: 
string

Type Definitions

TEmojiExtension

Emoji extension for marked

Type:
  • object
Properties
NameTypeDescription
namestring

Extension name

levelstring

Extension level

startfunction

Function to find the first index of the emoji in the source string

tokenizerfunction

Function to tokenize the emoji

rendererfunction

Function to render the emoji