Skip to content

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 ​

ParameterType
tokenToken
contextMarkdownParseContext

Returns ​

PMNode[] | null