We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In stringify.js, mods.block is hardcoded to curlies.
stringify.js
mods.block
curlies
If the argument signature is changed to:
const stringify = (node, options = { depth: 0, syntax: 'css' }) => {
and the mod declaration moved inside of the stringify closure, with one additional change made to buffer = node.children.reduce() so that it is
mod
stringify
buffer = node.children.reduce()
buffer = node.children.reduce( (buff, child) => buff.concat( stringify(child, { depth: options.depth + 1, syntax: options.syntax }), // <-- PASSING OPTS HERE ), [], )
Then we change mods.block
const mods = { 'block': (options.syntax != 'sass') && curlies, // etc }
The issue is resolved.
const sassAST = sast.parse(mockSASS, {syntax: 'sass'}) sast.stringify(sassAST, {syntax: 'sass'})
I can submit PR for this tomorrow.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
stringify.js
,mods.block
is hardcoded tocurlies
.If the argument signature is changed to:
and the
mod
declaration moved inside of thestringify
closure, with one additional change made tobuffer = node.children.reduce()
so that it isThen we change
mods.block
The issue is resolved.
I can submit PR for this tomorrow.
The text was updated successfully, but these errors were encountered: