[Docs] Always dasherize variables in the docs.
This commit is contained in:
parent
24a25b5bba
commit
a6c22c32be
@ -126,6 +126,7 @@ def constants(item)
|
|||||||
if child.is_a?(Sass::Tree::VariableNode)
|
if child.is_a?(Sass::Tree::VariableNode)
|
||||||
child.comment = comment && Sass::Tree::CommentNode.clean(comment)
|
child.comment = comment && Sass::Tree::CommentNode.clean(comment)
|
||||||
comment = nil
|
comment = nil
|
||||||
|
child.name.tr!("_",'-')
|
||||||
constants << child
|
constants << child
|
||||||
elsif child.is_a?(Sass::Tree::CommentNode)
|
elsif child.is_a?(Sass::Tree::CommentNode)
|
||||||
comment ||= ""
|
comment ||= ""
|
||||||
|
Loading…
Reference in New Issue
Block a user