News for hackers. Stuff that matters.
Re:Markdress - Render any markdown URL by rpicard on Saturday December 03, 2011 @02:18PM (#3308534)
Cool project. It looks like you need to adjust relative image sources so they will load.

http://markdress.org/goo.gl/zTG1q

Re:Markdress - Render any markdown URL by sanand0 on Saturday December 03, 2011 @04:42PM (#3308948)
Actually, I'd rather leave it to the author of the document, because it seems a tough problem to solve.

At http://markdress.org/goo.gl/zTG1q, for example, the image is linked to an absolute URL: /graphics/markdown/mt_textformat_menu.png. It's going to be a bit cumbersome to traverse through goo.gl and detect that this is actually at http://daringfireball.net/. Might be easier if authors either stuck to pure relative URLs, or full URLs with domains.

But that's just me passing the buck...

Re:Markdress - Render any markdown URL by buddydvd on Saturday December 03, 2011 @08:31PM (#3309531)
A quick workaround would be to add the `<base>` tag: https://developer.mozilla.org/en/HTML/Element/base to your generated HTML and have it point it to the target URL.