diff --git a/src/Common.css b/src/Common.css index e73ad05..65a715d 100644 --- a/src/Common.css +++ b/src/Common.css @@ -59,14 +59,11 @@ margin-left: .15rem; } -.img-link { - display: inline-block; -} - - -.img-link img { +.ext-img { max-width: 100%; max-height: 2000px; + display: block; + margin: 0 auto; } .left-container .img-link img { diff --git a/src/Common.js b/src/Common.js index 0db432d..2075cec 100644 --- a/src/Common.js +++ b/src/Common.js @@ -132,19 +132,12 @@ export class HighlightedMarkdown extends Component { shouldProcessNode: (node) => node.name === 'img', processNode(node, index) { return ( - - {node.alt} - + {node.alt} ); }, },