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

Check for language existence before trying to highlight #226

Merged
merged 2 commits into from
Oct 1, 2020

Commits on Sep 30, 2020

  1. Check for language existence before trying to highlight

    hljs throws an error if you pass an unregistered language name to `hljs.highlight()`. We need to verify that the language has been registered (`hljs.getLanguage()` returns `undefined` for unregistered languages) before trying to use hljs.
    smoores-dev authored Sep 30, 2020
    Configuration menu
    Copy the full SHA
    c9151bf View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2020

  1. Configuration menu
    Copy the full SHA
    9bc8189 View commit details
    Browse the repository at this point in the history