You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
highlighter.codeToHtml(code, { lang: 'yaml' }) works fine, but these both fail:
highlighter.codeToHtml(code, { lang: 'Yaml' })
'highlighter.codeToHtml(code, { lang: 'YAML' })'
I can fix this on my end now that I know what the issue is, though it seems a bit silly to have the highlighter throw if the only issue is casing of the language.
Would you be open to approving a PR to that runs .toLowerCase() to solve this issue, or is throwing in this scenario the desired/intended behavior for the project?
The text was updated successfully, but these errors were encountered:
highlighter.codeToHtml(code, { lang: 'yaml' })
works fine, but these both fail:highlighter.codeToHtml(code, { lang: 'Yaml' })
I can fix this on my end now that I know what the issue is, though it seems a bit silly to have the highlighter throw if the only issue is casing of the language.
Would you be open to approving a PR to that runs
.toLowerCase()
to solve this issue, or is throwing in this scenario the desired/intended behavior for the project?The text was updated successfully, but these errors were encountered: