Open hagenburger opened 6 years ago
- How to generate the ID? Maybe generate a hash of the contents
I agree, would be nice to get this working!
- How long should the ID be? Maybe 6 hex characters should be enough
as inspiration i would start looking into the code of css-modules as they do similar things with their classes. along these lines?
example: https://www.javascriptstuff.com/css-modules-by-example/
see:
@12finger yes, go with it as suggested.
New feature
Code examples should get an automatically generated HTML ID if not defined by the user.
Specification
When no ID is defined:
Open questions