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

Images inserted in react-markdown fields are currently not processed as Gatsby Images #1005

Open
1 task done
Fupete opened this issue Oct 11, 2023 · 2 comments
Open
1 task done

Comments

@Fupete
Copy link
Collaborator

Fupete commented Oct 11, 2023

Does a discussion already exist on the topic you are interested in, or on a similar topic?

  • I verified and it doesn't exist

What

We need to process "inline" images entered directly as ![title](imageUrl) in the react-markdown text fields as "native" Gatsby images.

We need to implement a solution like this (plugin): https://www.gatsbyjs.com/docs/how-to/images-and-media/working-with-images-in-markdown/#inline-images-with-gatsby-remark-images

Why

The use of 'inline' markdown images in the react-markdown 'text' fields could simplify the YAML editing process in long pages as the design system ones.

An argument against this solution: the data structure will be a bit more cluttered, we will authorize/have images in text fields. Could this make it even more complicated to attach a CMS next year? Let's think about it 🤔 .

Context

cc @bfabio @zetareticoli

More

No response

@Fupete

This comment was marked as outdated.

@Fupete
Copy link
Collaborator Author

Fupete commented Feb 20, 2024

We have to try to implement the remark-images plugin in all the components where we use react-markdown. Let's make a test later this month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants