question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support collocated images

See original GitHub issue

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

[![IMAGE ALT TEXT](./myimage.png)](https://www.example.com "My Image description")

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:

Screenshot from 2020-07-15 09-34-55

Directory structure:

Screenshot from 2020-07-15 09-37-43

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
slorbercommented, Jul 24, 2020

Hey all, this is feature is now released! If you like it, don’t forget to retweet 😄 https://twitter.com/docusaurus/status/1286715187983048704

1reaction
slorbercommented, Jul 15, 2020

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 https://github.com/facebook/docusaurus/issues/3057

Read more comments on GitHub >

github_iconTop Results From Across the Web

3,417 Collocation Images, Stock Photos & Vectors | Shutterstock
Find Collocation stock images in HD and millions of other royalty-free stock photos, illustrations and vectors in the Shutterstock collection.
Read more >
imgpkg image collocation and tagging
Finding if an image is already present in the destination repository is complicated. Registries like gcr.io support paths in their repositories ...
Read more >
Learning to Collocate Neural Modules for Image Captioning
We develop several techniques for effective module collo- cation training in partially observed sentences. • Experiment results show that significant ...
Read more >
Stack or Collocation - snap - STEP Forum
Which one is better to merge S1+S2 images? Stack from radar tools or collocation from raster tools? I have found that both methods...
Read more >
(PDF) Mobiphos: a collocated-synchronous mobile photo ...
tion, Mobiphos, designed to support collocated–synchronous photo. capture and sharing. Mobiphos gives a group of collocated users.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found