Closed deadcoder0904 closed 3 years ago
@deadcoder0904 this can be done by adding this to your settings.json
"headwind.classRegex": {
"javascript": "(?:\\bclass(?:Name)?\\s*=\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\'])|(?:\\btw\\s*`([_a-zA-Z0-9\\s\\-\\:\\/]*)`)"
}
Good to know :)
Is your feature request related to a problem? Please describe. I'm using Remark to style a table in Tailwind. I can't style it directly as my table is in markdown so I have to use Remark as an intermediary step to do it.
I have an array which contains
table
tag & I keep pushingtr
,th
, etc... onto it like:Describe the solution you'd like I'd love for Headwind to sort classes in JS files too where a string uses
class
tag.