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

No background for highlighted code #53

Open
constgen opened this issue Jul 14, 2019 · 0 comments
Open

No background for highlighted code #53

constgen opened this issue Jul 14, 2019 · 0 comments

Comments

@constgen
Copy link

I use Webpack 3, so have to use [email protected]

I followed the instructions about importing a theme https://github.com/frontarm/mdx-util/tree/master/packages/mdx-loader#syntax-highlighting . But the result is that background styles are not applied because the generated markup doesn't preserve theme selectors https://github.com/PrismJS/prism/blob/master/themes/prism-tomorrow.css#L39

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #2d2d2d;
}

Built result

image

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

No branches or pull requests

1 participant