You've already forked AstralRinth
forked from didirus/AstralRinth
lint
This commit is contained in:
@@ -54,7 +54,9 @@ export const renderHighlightedString = (string) =>
|
||||
if (lang && hljs.getLanguage(lang)) {
|
||||
try {
|
||||
return hljs.highlight(str, { language: lang }).value
|
||||
} catch (__) { /* empty */ }
|
||||
} catch (__) {
|
||||
/* empty */
|
||||
}
|
||||
}
|
||||
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user