Module: lib/highlight

Methods

(static) codeBlockElements(codeBlock, optionsnullable) → {*}

Render a code block

Parameters:
Name Type Attributes Description
codeBlock Object

The code block model

options Object <nullable>

The options object

Source:
Returns:

The code block's element model

Type
*

(static) compileHighlightModels(markdown) → {Object}

Compile an array of highlight models

Parameters:
Name Type Description
markdown Array.<Object>

The array of Highlight models

Source:
Returns:

The map of language name/alias to code block render function

Type
Object