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

fix: console log Unknown language: "" #8

Merged
merged 1 commit into from
Mar 5, 2020

Conversation

commenthol
Copy link
Contributor

highlight.js throws an error for option {auto: false} if no language
is given. As an ugly side-effect this error is logged via console.log.
Setting the language in those cases to plaintext prevents this.

No new test case required as already being covered. You'll only notice that the console.log error message is gone.

highlight.js throws an error for option `{auto: false}` if no language
is given. As an ugly side-effect this error is logged via console.log.
Setting the language in thoses cases to `plaintext` prevents this.
@valeriangalliat valeriangalliat merged commit 7980c36 into valeriangalliat:master Mar 5, 2020
@valeriangalliat
Copy link
Owner

Good stuff, thanks!

@commenthol commenthol deleted the fix-undef-lang branch March 6, 2020 17:15
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 this pull request may close these issues.

2 participants