Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: renderAttrs duplicate class attributes #133

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

beverlyn
Copy link
Contributor

When passing in a class to renderAttrs, I noticed that markdown-it would error due to duplicate keys.
This PR merges class attributes if it's passed into renderAttrs.
This is particularly useful when you're passing in attributes computed from another function, and it happens to contain a class attribute.

@valeriangalliat valeriangalliat merged commit c70bfc8 into valeriangalliat:master Aug 24, 2024
@valeriangalliat
Copy link
Owner

Thanks!

@valeriangalliat
Copy link
Owner

Published with 9.0.2

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