- Source:
Methods
(static) wrapTokens(Token, type, container, tokensopt) → {Array.<Token>}
Wrap array of tokens by specified container object.
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Token |
Token
|
markdown-it's Token class. |
||||||||||||||||||
type |
String
|
Token type. It will be suffixed by |
||||||||||||||||||
container |
Object
|
A container object to wrap tokens, includes tag name and attributes.
|
||||||||||||||||||
tokens |
Array.<Token>
|
<optional> |
[] |
Wrapping tokens. |
Returns:
- Type:
-
Array.<Token>
Wrapped tokens.