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

Support for CSS nesting #399

Merged
merged 6 commits into from
Aug 30, 2024
Merged

Support for CSS nesting #399

merged 6 commits into from
Aug 30, 2024

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 30, 2024

Resolves #397.

Marpit now allows cssNesting constructor option, to enable or disable preprocessing for CSS nesting. The default value is true.

new Marpit({ cssNesting: true }) // true by default

Currently Marpit has a lot of CSS manipulations, and some of them are not supported CSS nesting. Thus, I have taken the approach that will try to make flattennested CSS before rendering by using postcss-nesting. Developers can disable it by explicitly setting cssNesting: false as a constructor option.

@yhatt yhatt merged commit a92f8b9 into main Aug 30, 2024
11 checks passed
@yhatt yhatt deleted the css-nesting branch August 30, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for CSS nesting
1 participant