Skip to content

Commit

Permalink
fix(markdown-renderer): fix image width inside markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoAnjos16 committed May 12, 2022
1 parent 3f87916 commit d82dc58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/markdown-renderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const components = {
td: ({ node, ...props }: Component) => (
<td className={styles.td} {...props} />
),
img: ({ node, ...props }: Component) => (
<img className={styles.img} {...props} />
),
}

interface Props {
Expand Down
6 changes: 5 additions & 1 deletion src/components/markdown-renderer/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

.td {
border: 1px solid black;
}
}

.img {
max-width: 100%;
}

0 comments on commit d82dc58

Please sign in to comment.