Type Editor / @type-editor/markdown / types/TokenHandler / TokenHandler
Type Alias: TokenHandler()
ts
type TokenHandler = (state, token, tokens, i) => void;Defined in: types/TokenHandler.ts:14
Function type for handling a specific markdown-it token during parsing.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | MarkdownParseState | The current parse state. |
token | Token | The token being processed. |
tokens | Token[] | The complete array of tokens. |
i | number | The index of the current token in the tokens array. |
Returns
void