Skip to content

Commit

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

Please sign in to comment.