Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass Interpolations are not correctly stringified #12

Open
ManuelSch opened this issue Dec 2, 2019 · 1 comment
Open

Sass Interpolations are not correctly stringified #12

ManuelSch opened this issue Dec 2, 2019 · 1 comment

Comments

@ManuelSch
Copy link

Sass interpolations (https://sass-lang.com/documentation/interpolation) are parsed correctly, but stringify() removes them, resulting in incorrect code.

Steps to reproduce:

const tree = sast.parse('width: calc(100% - #{2 * $spacer})', { syntax: 'sass' });
console.log(sast.stringify(tree));

// should output: width: calc(100% - #{2 * $spacer})
// current output: width: calc(100% - 2 * $spacer)

This happens for both sass and scss.

@shawnbot
Copy link
Owner

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants