diff --git a/website/docs/parser.md b/website/docs/parser.md index d9c43594..9ba1a6a1 100644 --- a/website/docs/parser.md +++ b/website/docs/parser.md @@ -93,7 +93,7 @@ For example, to replace `a` elements with a custom element: import { Interweave, Node } from 'interweave'; function transform(node: HTMLElement, children: Node[]): React.ReactNode { - if (node.tagName === 'a') { + if (node.tagName === 'A') { return {children}; } }