-
Notifications
You must be signed in to change notification settings - Fork 115
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
Enabling additional languages for syntax highlighting in Docusaurus breaks Redocusaurus #68
Labels
Comments
Redoc also ships prism with itself, the global configs might be conflicting. |
I noticed that the problem disappear if I add the language "scala" on top of "java": module.exports = {
// ...
themeConfig: {
prism: {
additionalLanguages: ['java', 'scala'],
},
// ...
},
}; As you said, this is probably due to conflicts with prism in Redoc. Thanks |
Thanks for posting the solution 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to reproduce
Add additional languages for the syntax highlighting in Docusarus (https://docusaurus.io/docs/markdown-features/code-blocks#supported-languages)
Example:
The additional language is correctly enabled in Docusaurus, however, when navigating to a Redocusaurus page the following error is happening:
Uncaught (in promise) TypeError: lang is undefined
Dependencies used in package.json
Any idea of how to fix it?
Thanks
The text was updated successfully, but these errors were encountered: