Methods
(static) wrapTokens(Token, type, container, tokensopt) → {Array.<Token>}
Wrap array of tokens by specified container object.
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. Properties
| ||||||||||||||||||
tokens | Array.<Token> | <optional> | [] | Wrapping tokens. |
- Source
Returns:
Wrapped tokens.
- Type:
- Array.<Token>