Skip to content

Commit

Permalink
Merge pull request #5407 from Sage-Bionetworks/release-500
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros authored Jun 3, 2024
2 parents 1410b37 + 48816ed commit 5181921
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 5181921

Please sign in to comment.