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

feat: add ability to filter attribute values #160

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

treardon17
Copy link

In the app I'm working on, we allow styling markdown via the use of classes, but we want to limit which classes can be used so customers can't apply styles to their markdown that we don't allow. Looks like there was a question about something similar to this feature here #112. This PR will not affect current behavior, but it adds a new option to compliment allowedAttributes called allowedAttributeValues. This follows the same pattern as allowedAttributes but will only look at the values instead of the keys.

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.

1 participant