Methods

(inner) codeMacro(language, content) → {string}

Parameters:
NameTypeDescription
languagestring

Fenced code language attribute

contentstring

Fenced code content

Returns:

Html markup

Type: 
string

(inner) escape(str) → {string}

Escape the string ]]> found in str in order to be valid inside a CDATA block

Parameters:
NameTypeDescription
strstring

Text to escape

Returns:

Escaped text

Type: 
string

(inner) plugin(md, options)

MarkdownIt plugin to handle fenced code blocks

Parameters:
NameTypeDescription
mdMarkdownIt

A MarkdownIt instance

optionsobject

Plugin options

(inner) processGraph(config, content, param2) → {string}

Processes graph content and produces appropriate markup based on the configuration

Parameters:
NameTypeDescription
configstring

Configuration specific to the fenced code language attribute

contentstring

Fenced code content

param2object

Parser environment object

Returns:

Html markup

Type: 
string