Skip to content

TurndownServiceRules.forNode method

TurndownServiceRules › forNode

Unofficial

Find the matching rule for a node.

Signature:

forNode(node: HTMLElement): TurndownServiceRule

Parameters:

ParameterTypeDescription
nodeHTMLElementThe HTML element to match.

Returns: TurndownServiceRuleThe matching rule.