Skip to content

Commit

Permalink
Update Highlightr.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored Jul 24, 2024
1 parent 17b2ed9 commit b4f3b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/Highlightr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ open class Highlightr
if let languageName = languageName
{
let result: JSValue = hljs.invokeMethod("highlight", withArguments: [languageName, code, ignoreIllegals])
if result.isUndefined {
if result.isUndefined {
// If highlighting failed, use highlightAuto
ret = hljs.invokeMethod("highlightAuto", withArguments: [code])
} else {
Expand Down

0 comments on commit b4f3b0c

Please sign in to comment.