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

Rendering of markdown files in Viewer #2073

Open
DTP587 opened this issue Dec 4, 2023 · 3 comments
Open

Rendering of markdown files in Viewer #2073

DTP587 opened this issue Dec 4, 2023 · 3 comments

Comments

@DTP587
Copy link

DTP587 commented Dec 4, 2023

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 😊

@brianjgeiger
Copy link
Contributor

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.

@DTP587
Copy link
Author

DTP587 commented Dec 4, 2023

Thanks 😊 I see that would fix the images; but other structures in the markdown files seem to be incorrectly displaying too:

Table Incorrect

Code Block Incorrect

Correct display on GitHub:

Table GitHub

Code Block GitHub

@brianjgeiger
Copy link
Contributor

brianjgeiger commented Dec 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants