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

URL is CSS does not work with @ symbol #2270

Closed
larbear opened this issue Mar 26, 2020 · 0 comments · Fixed by #2272
Closed

URL is CSS does not work with @ symbol #2270

larbear opened this issue Mar 26, 2020 · 0 comments · Fixed by #2272

Comments

@larbear
Copy link

larbear commented Mar 26, 2020

Information:

  • Prism version: [e.g. 1.19.0, latest from the download page, etc.]
  • Plugins: none
  • Environment: Browser

Description
URL tokenization in CSS does not work with an @ symbol does not work. It instead interprets it as a string.

Example
Compare the following. The first will be tokenized as a string, the second as a url.

@import url("https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-dark.css");
@import url("https://cdn.jsdelivr.net/npm/prismjs/themes/prism-dark.css");
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 a pull request may close this issue.

1 participant