Skip to content

Commit

Permalink
Merge pull request #5406 from nickgros/SWC-6857a
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros authored Jun 3, 2024
2 parents b1e512e + dab554d commit 48816ed
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ private static final native String _markdown2Html(
console.error(_err);
}
} else {
return $wnd.hljs.highlightAuto(str).value;
}
try {
return $wnd.hljs.highlightAuto(str).value;
} catch (_err) {
console.error(_err);
}
}
return ''; // use external highlight
}
});
Expand Down

0 comments on commit 48816ed

Please sign in to comment.