I had a similar problem some time ago (and had a hard time trying to explain), here is the topic (How do I get the noClasses
value?). Also, check this (Can I get the Goldmark config value?) and this (How to use pygmentsUseClasses
in HTML?).
AFAIK, there’s no way and you’ll have to instruct the user.