-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Support collocated images #3061
Comments
If I put it in static folder and try to access it that way, it will work in the website but will break when rendering in the Github repo. Was wondering what to do. |
Hi, Currently we don't support well using relative md images, so it's hard to support both github + website at the same time. This is something I want to solve in #3057 |
@slorber Thanks for the clarification. Will use the absolute url till then. Feel free to close this issue if you want. |
#3069 this solve relative images |
Hey all, this is feature is now released! |
Hi. I am using docusaurus v2. While everything works great, trailing slash is breaking images.
I have a markdown syntax like this where I am storing myimage in the same folder as the markdown file
It fails because of the trailing slash. If I fix in the website by maybe adding
../
it will not render in Github. Is there any way to make it work both in Github and the website as well?Screenshot below:
Directory structure:
I guess the same path logic you guys are using for generating html out of
.md
and rewriting paths can be used for images as well.Thanks in advance.
The text was updated successfully, but these errors were encountered: