ember-osf-web
ember-osf-web copied to clipboard
Rendering of markdown files in Viewer
Hello, apologies if I have this wrong as this is my first time opening an issue!
I have a repository with the OSF where inside we have linked out each of the project modules to separate GitHub repositories with markdown files containing a list of instructions (example).
Unfortunately, when these files are viewed though the OSF website, it renders incorrectly with the images missing.
I understand that as these modules are not directly hosted on the OSF it may be difficult/impossible to render these markdown files correctly. Is there any possibility to get this fixed?
Thank you 😊
Hello. On first look, it seems like the problem is that your image tags are referencing relative paths for your images (ex. image.jpg). If you replace those with absolute paths (ex. https://domain.com/files/image.jpg), it should work properly.
Thanks 😊 I see that would fix the images; but other structures in the markdown files seem to be incorrectly displaying too:
Correct display on GitHub:


Correct display on GitHub:


--
Reply to this email directly or view it on GitHub:
https://github.com/CenterForOpenScience/ember-osf-web/issues/2073#issuecomment-1838711259
You are receiving this because you commented.
Message ID: ***@***.***>