Skip to content

Commit

Permalink
Take comment from linkify-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 3, 2024
1 parent ebed51e commit 35d27d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ const parseValue = (value, href) => {
// Get `<a>` element as string
const linkify = (href, options = {}) => createHtmlElement({
name: 'a',
// First `href` is needed for the `href` attribute to be the first attribute on the `a` tag
attributes: {
href, // Set first so it appears first in the final HTML string
href,
...options.attributes,
href, // eslint-disable-line no-dupe-keys -- Ensures it's not overwritten
},
Expand Down

0 comments on commit 35d27d1

Please sign in to comment.