Skip to content

Commit

Permalink
fix(semantic): prevent image width overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonman225 authored and thesophiaxu committed Mar 27, 2022
1 parent 70b2a61 commit 4dbea60
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export const Markdown: DynamicViewRenderer = ({ data, callbacks, isHeading }) =>
children,
style: {
display: '',
maxWidth: '100%',
// eslint-disable-next-line no-nested-ternary
height: node?.properties?.alt?.startsWith?.('inline:') ? '1.5em' : '',
},
Expand Down

0 comments on commit 4dbea60

Please sign in to comment.