Skip to content

feat: add ability to filter attribute values#160

Open
treardon17 wants to merge 2 commits into
arve0:masterfrom
treardon17:master
Open

feat: add ability to filter attribute values#160
treardon17 wants to merge 2 commits into
arve0:masterfrom
treardon17:master

Conversation

@treardon17
Copy link
Copy Markdown

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