OpenScienceMOOC / Module-5-Open-Research-Software-and-Open-Source

Module 5: Open Research Software and Open Source
https://eliademy.com/catalog/oer/module-5-open-research-software-and-open-source.html
MIT License
76 stars 52 forks source link

Links and images not converting correctly #30

Closed Protohedgehog closed 6 years ago

Protohedgehog commented 6 years ago

When I use notedown to convert the markdown files to ipynb format, the links and images appear to break and not be rendered correctly.

Compare https://github.com/OpenScienceMOOC/Module-5-Open-Research-Software-and-Open-Source/blob/master/content_development/MAIN.ipynb to

https://github.com/OpenScienceMOOC/Module-5-Open-Research-Software-and-Open-Source/blob/master/content_development/MAIN.md

Anyone know why this might be and how to fix it?

rtleyb commented 6 years ago

add this to the end of the path: ?raw=true

Open Source vs. Closed Source

works?

zuphilip commented 6 years ago

The parameters src and width should be insides "..." which in the ipynb must be escaped, because each line already starts and stops with a ". Together with the hint from above this then should work.

Protohedgehog commented 6 years ago

YES! Thank you both. This is the correct syntax that seems to work in both md and ipynb now:

"<img src=\"https://github.com/OpenScienceMOOC/Module-5-Open-Research-Software-and-Open-Source/blob/master/content_development/images/open_research_software_open_source.png?raw=true\" width=\"800\" />\n",

Gonna go through and fix these now, and pray that it works..

Protohedgehog commented 6 years ago

In Anakin voice: "It's working... it's working..!!' Thanks all :)

Any suggestions for the broken links?

zuphilip commented 6 years ago

Any suggestions for the broken links?

AFAIS the absolute links work and only the relative links don't work. Or any other problem?

Protohedgehog commented 6 years ago

Yes, @zuphilip, you're right sorry, should have been clearer. It is in the internal/relative links that don't seem to work - the TOC, for example.

zuphilip commented 6 years ago

The code looks fine and when I open the IPython Notebook with another viewer it seems to work fine, e.g. http://nbviewer.jupyter.org/github/OpenScienceMOOC/Module-5-Open-Research-Software-and-Open-Source/blob/master/content_development/MAIN.ipynb#What_OSS . Thus, I guess this is a problem with the viewer for .ipynb on GitHub itself. Maybe you can contact them and ask (from my experience I can say that they are very friendly and helpful).

Protohedgehog commented 6 years ago

@zuphilip OK, this is awesome news! I just checked too and found the same too - whew! Gonna close this one now :)

I'll make sure to add a comment about this too in the README file.