mathieudutour / medium-to-own-blog

Switch from Medium to your own blog in a few minutes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preserve Medium image layout

mathieudutour opened this issue · comments

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

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.

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

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

we could also use a React component and leverage mdx.