mathieudutour / medium-to-own-blog

Switch from Medium to your own blog in a few minutes
MIT License
3.03k stars 107 forks source link

preserve Medium image layout #35

Open mathieudutour opened 5 years ago

mathieudutour commented 5 years ago

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

imedadel commented 5 years ago

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.

mathieudutour commented 5 years ago

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

imedadel commented 5 years ago

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

mathieudutour commented 5 years ago

we could also use a React component and leverage mdx.