1
0
Fork 0

chore: Fixed linter warnings

This commit is contained in:
Joost De Cock 2022-01-20 09:07:38 +01:00
parent 56df5d5287
commit 2234155052
70 changed files with 103 additions and 309 deletions

View file

@ -8,8 +8,9 @@ const names = {
const Highlight = (props) => {
const { children=[], className='language-js' } = props
const language = props.children.props.className.split('-').pop()
const language = props.children
? props.children.props.className.split('-').pop()
: 'txt'
return (
<div className="hljs my-4">