medium-to-own-blog icon indicating copy to clipboard operation
medium-to-own-blog copied to clipboard

preserve Medium image layout

Open mathieudutour opened this issue 5 years ago • 4 comments

Medium has a few options for the layout of images. Can we somehow preserve it?

mathieudutour avatar Jun 02 '19 18:06 mathieudutour

Do you mean the header/hero/thumbnail? If that's the case, then you can add a thumbnail field to the frontmatter, and probably a layout field too in which the user specifies the desired layout.

imedadel avatar Jun 02 '19 19:06 imedadel

I mean that each image on Medium can be set as full-width, container-width, or floating (left or right).

There is no "hero" image on medium, it's just an image at the beginning which can be set as full-width

mathieudutour avatar Jun 02 '19 20:06 mathieudutour

Oh, I see. Well, if you do not want to use HTML in Markdown, you can use gatsby-remark-custom-blocks.

imedadel avatar Jun 02 '19 20:06 imedadel

we could also use a React component and leverage mdx.

mathieudutour avatar Jun 02 '19 21:06 mathieudutour