We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since highlight-v10, highlight(lang, code) is deprecated, instead use highlight(code, {language: lang})
highlight: function (str, lang) { if (lang && hljs.getLanguage(lang)) { try { return hljs.highlight(lang, str).value; } catch (err) {} } try { return hljs.highlightAuto(str).value; } catch (err) {} return ''; // use external default escaping }
becomes
highlight: function (str, lang) { if (lang && hljs.getLanguage(lang)) { try { return hljs.highlight(str, {language: lang}).value; } catch (err) {} } try { return hljs.highlightAuto(str).value; } catch (err) {} return ''; // use external default escaping }
The text was updated successfully, but these errors were encountered:
Updated highlight.js example to latest version. jonschlinkert#418
2f29dad
No branches or pull requests
Since highlight-v10, highlight(lang, code) is deprecated, instead use highlight(code, {language: lang})
becomes
The text was updated successfully, but these errors were encountered: