Skip to content

Conversation

@bennypowers
Copy link
Contributor

No description provided.

@bennypowers bennypowers marked this pull request as ready for review November 24, 2021 12:38
@oyejorge
Copy link
Member

Does it need to remove the id? or could it just not add an id?

@bennypowers
Copy link
Contributor Author

As it is i'm already concerned that we pass the JSDOM Element instance to the formatter function, that will make it harder to remove JSDOM (which is slow) in favour of something like parse5/hast, which is much faster.

But the user could just return element.getAttribute("id") if they wanted to keep the existing one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants