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

Fix over-scoped selectors injected by printable plugin #104

Merged
merged 4 commits into from
Nov 30, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Nov 30, 2018

Theme CSS can no longer use html and body selector by to apply selector scoping in #98. However, it causes the over-scoping into CSS injected by printable option.

By using Marpit v0.3.2 in Marp CLI, the converted PDF will break by wrong page splitting.

This issue was fixed by using @media marpit-print internal media query. In a theme CSS, <style> element, and before and after options in ThemeSet#pack, the internal query cannot use. The modified plugin, added post-process, will rename internal query rule.

@yhatt yhatt added the bug Something isn't working label Nov 30, 2018
@yhatt yhatt merged commit bb0714e into master Nov 30, 2018
@yhatt yhatt deleted the fix-printable-selector branch November 30, 2018 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant