chore: Fixed linter warnings
This commit is contained in:
parent
56df5d5287
commit
2234155052
70 changed files with 103 additions and 309 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue