Skip to content

Any way to support relative image for markdown in remix? #2423

Closed Answered by sergiodxa
szhshp asked this question in Q&A
Discussion options

You must be logged in to vote

I think you need MDX for that, so you can import the image

import image from "./path/to/image"

<img src={image} />

In plain Markdown, you have to move the images to the public folder and then do /path/to/image, without that the image will not be moved to public automatically.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@szhshp
Comment options

Answer selected by szhshp
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants