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

Autoloader doesn't load data-dependencies of elements with already loaded languages #1994

Closed
RunDevelopment opened this issue Jul 21, 2019 · 0 comments · Fixed by #2326
Closed

Comments

@RunDevelopment
Copy link
Member

Information:

  • Prism version: 1.16
  • Environment: Browser

Description
Autoloader will ignore the data-dependencies of elements if the language of the element is loaded already.

Suppose we have already loaded the JavaScript language. If we then want to highlight this element:

<pre data-dependencies="js-extras"><code class="language-javascript">
    console.log("foo");
</code></pre>

Then Autoloader will do nothing. JS Extras will not be loaded.

Example
An example of this can be seen in #1936 on the examples page. Open the examples page, select JavaScript, select JS Extras, and see that JS Extras wasn't loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant