SassDoc / sassdoc

Release the docs!
http://sassdoc.com
MIT License
1.41k stars 56 forks source link

Bug: Escaping in Class Names #531

Closed reneroth closed 5 years ago

reneroth commented 6 years ago

Using a class name like .o-grid__cell.-w50\@small - with the @ escaped for Sass reasons, resulting in a Class of .o-grid__cell.-w50@small - should output the class names without the escaping \.

Would this be best solved in the core or theme?

pascalduez commented 6 years ago

Hey,

most likely coming from scss-comment-parser.

EDIT: well not sure actually, as you said maybe just a display thing from the theme.

https://mathiasbynens.be/notes/css-escapes

reneroth commented 6 years ago

@pascalduez at which point should we adjust this? It'd make sense to output the class names the way they should be used in HTML, and not the way they need to be written in CSS. Should we provide the theme with the already de-escaped names, or do the de-escaping in the themes? Or do nothing at all about it?