Ability to match values by regex #3

Open
opened 2020-10-13 19:08:36 +00:00 by alexgleason · 0 comments
Member

Eg I would like the ability to do this:

Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline", ~r/language-(\w+)/])

This would allow us to have syntax highlighting from Earmark with namespaced classes.

Related: pleroma/pleroma#2002

Eg I would like the ability to do this: ```elixir Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline", ~r/language-(\w+)/]) ``` This would allow us to have syntax highlighting from Earmark with namespaced classes. Related: pleroma/pleroma#2002
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma-elixir-libraries/fast_sanitize#3
No description provided.