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
Hi!
I'm one of the maintainers of PrismJS and we had this issue here.
The cause of the problem is that loadPrismLang doesn't handle languages dependencies, e.g. C++ requiring C.
This should be quite easy to fix however as Prism provides a loadLanguages function which handles all dependencies for you. The usage of this function is described here under "Usage with Node".
The text was updated successfully, but these errors were encountered:
* use `loadLanguages` to load languages
Fix: #22 `loadPrismLang` doesn't handle languages dependencies, e.g. C++ requiring C.
* Remove obsolete try-catch
* Add test case for rendering C++
Hi!
I'm one of the maintainers of PrismJS and we had this issue here.
The cause of the problem is that
loadPrismLang
doesn't handle languages dependencies, e.g. C++ requiring C.This should be quite easy to fix however as Prism provides a
loadLanguages
function which handles all dependencies for you. The usage of this function is described here under "Usage with Node".The text was updated successfully, but these errors were encountered: