Skip to content

Commit

Permalink
Refactor to only visit elements
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 17, 2018
1 parent 5d47dbc commit d2b8c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function autolink(options) {
return transformer

function transformer(tree) {
visit(tree, visitor)
visit(tree, 'element', visitor)
}

function visitor(node) {
Expand Down

0 comments on commit d2b8c35

Please sign in to comment.