Type Alias: MarkdownRule
ts
type MarkdownRule = (token, context) => PMNode[] | null;Convert one marked token. Return the nodes to insert (block nodes for a block token, inline nodes for an inline token), or null to fall back to the built-in handling.
Parameters
| Parameter | Type |
|---|---|
token | Token |
context | MarkdownParseContext |
Returns
PMNode[] | null