Class Attributors variations cannot contain hyphens
Closed this issue · 2 comments
Hi,
Just recently noticed that Class Attributors variations cannot contain hyphens and if they do Parchment is not able to find the proper blot to process.
So I would suggest to add this info into the documentation regarding the expected pattern for the end classes:
[class-attributor-name]
[-]
[variation_name_without_any_hyphens]
Using quill-color as an example, if i define a color with a class called "light-brown":
[ql-color]
[-]
[light-brown]
Class Attributor would actually end up looking for the attributor with the keyName ql-color-light
which normally wouldn't exist.
Another suggestion would be to use/expect another character to separate the keyName from the variation less common than -
but that would probably break functionality for a lot of people.
Please let me know if there's any other info I'd need to provide.
Looks like the approach to avoid this issue is to stick to underscores.
ql-color-light_brown
instead of ql-color-light-brown
See reference line for this issue.
Closing inactive issue.