- Source
Methods
(inner) codeMacro(language, content) → {string}
Parameters:
Name | Type | Description |
---|---|---|
language | string | Fenced code language attribute |
content | string | Fenced code content |
- Source
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:
Name | Type | Description |
---|---|---|
str | string | Text to escape |
- Source
Returns:
Escaped text
- Type:
- string
(inner) plugin(md, options)
MarkdownIt plugin to handle fenced code blocks
Parameters:
Name | Type | Description |
---|---|---|
md | MarkdownIt | A |
options | object | Plugin options |
- Source
(inner) processGraph(config, content, param2) → {string}
Processes graph content and produces appropriate markup based on the configuration
Parameters:
Name | Type | Description |
---|---|---|
config | string | Configuration specific to the fenced code language attribute |
content | string | Fenced code content |
param2 | object | Parser environment object |
- Source
Returns:
Html markup
- Type:
- string