Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Highlight = ({content, language}) => {
let effectiveLanguage;
if (language && lowlight.getLanguage(language)) {
effectiveLanguage = language;
}
return (
<div>
<div>
{content}
</div>
</div>
);
}
isKnownType(fileType) {
return getLanguage(fileType) && !this.isImage(fileType);
}
isKnownType(language) {
return language && getLanguage(language) && !this.props.newChunk;
}
const Highlight = ({content, language}) => {
let effectiveLanguage;
if (language && lowlight.getLanguage(language)) {
effectiveLanguage = language;
}
return (
<div>
<div>
{content}
</div>
</div>
);
}