Skip to content

Commit

Permalink
Update Article.js
Browse files Browse the repository at this point in the history
  • Loading branch information
barkure committed Dec 11, 2023
1 parent ea3f555 commit fe7f8b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Article.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ const Article = () => {
components={{
img(props) {
return <img {...props} style={{ maxWidth: '100%' }} />; // 图片宽度自适应
},
code({ node, inline, className, children, ...props }) {
return <code className={`code ${className}`} {...props}>{children}</code>
}
}}
/>
Expand Down

0 comments on commit fe7f8b8

Please sign in to comment.