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

loadPrismLang doesn't handle dependencies #22

Closed
RunDevelopment opened this issue May 28, 2019 · 0 comments · Fixed by #23
Closed

loadPrismLang doesn't handle dependencies #22

RunDevelopment opened this issue May 28, 2019 · 0 comments · Fixed by #23

Comments

@RunDevelopment
Copy link

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".

straicat added a commit to straicat/markdown-it-prism that referenced this issue May 28, 2019
Fix: jGleitz#22  `loadPrismLang` doesn't handle languages dependencies, e.g. C++ requiring C.
jGleitz pushed a commit that referenced this issue May 29, 2019
* 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++
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