Skip to content

TurndownServiceRules.forNode method

TurndownServiceRules › forNode

Unofficial

Find the matching rule for a node.

Signature:

forNode(node: HTMLElement): TurndownServiceRule

Parameters:

Parameter Type Description
node HTMLElement The HTML element to match.

Returns: TurndownServiceRuleThe matching rule.