Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve Medium image layout #35

Open
mathieudutour opened this issue Jun 2, 2019 · 4 comments
Open

preserve Medium image layout #35

mathieudutour opened this issue Jun 2, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@mathieudutour
Copy link
Owner

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

@mathieudutour mathieudutour added the enhancement New feature or request label Jun 2, 2019
@imedadel
Copy link

imedadel commented Jun 2, 2019

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
Copy link
Owner Author

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
Copy link

imedadel commented Jun 2, 2019

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

@mathieudutour
Copy link
Owner Author

mathieudutour commented Jun 2, 2019

we could also use a React component and leverage mdx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants