depot/web/lukegbcom/lib/posts-edge.js

13 lines
273 B
JavaScript
Raw Normal View History

2022-04-05 02:18:57 +00:00
import { resolveImageURL } from './images'
export const mdxComponents = {
img: Image
}
export function Image(props) {
props = {...props}
props.src = resolveImageURL(props.src)
props.style = { maxHeight: "500px", maxWidth: "100%" }
return (<img {...props} />)
}