forked from tuvn86/webapp-conversation
feat: lint code
This commit is contained in:
parent
2e46f795a4
commit
cfd0c9532f
36 changed files with 226 additions and 210 deletions
|
|
@ -18,7 +18,7 @@ export function Markdown(props: { content: string }) {
|
|||
components={{
|
||||
code({ node, inline, className, children, ...props }) {
|
||||
const match = /language-(\w+)/.exec(className || '')
|
||||
return !inline && match
|
||||
return (!inline && match)
|
||||
? (
|
||||
<SyntaxHighlighter
|
||||
{...props}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue