You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the package. It highlights "javascript", but no "json" or "jsx" (and probably no other non-core languages, but I have not tested this).
The reason is that the
importprismfrom'prismjs'
only imports the standard prism.js file. However this is generated primarilly for the website, as described in the README and does not contain all the languages.
If one wanted other non-core languages to be included, it seems one needs to generate his own prism.js from the download page, which is then not imported by your package.
Alternatively, there is a discussion that you can require language files, see here.
So to at least allow for "json" and "jsx" you would need to require.
Thanks for the package. It highlights "javascript", but no "json" or "jsx" (and probably no other non-core languages, but I have not tested this).
The reason is that the
only imports the standard prism.js file. However this is generated primarilly for the website, as described in the README and does not contain all the languages.
If one wanted other non-core languages to be included, it seems one needs to generate his own
prism.js
from the download page, which is then not imported by your package.Alternatively, there is a discussion that you can require language files, see here.
So to at least allow for "json" and "jsx" you would need to require.
There is probably a more general solution. What do you think?
The text was updated successfully, but these errors were encountered: