Markdress - Render any markdown URL(s-anand.net)
s-anand.net
Markdress - Render any markdown URL
http://www.s-anand.net/blog/markdress/
6 comments
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...
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...
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.
IMO there's one missing from the list of alternatives: Markdrop (http://www.markdrop.com/) (http://news.ycombinator.com/item?id=3089355)
I've added it now. Thanks.
One cool little thing you could add is a javascript widget on the front page, where people could paste in their link to a markdown file, and have it automatically formatted as a Markdress link (or even redirect them to the markdress page).
ps. Thanks for the Pancake.io shoutout!
ps. Thanks for the Pancake.io shoutout!
Added. Thanks for the suggestion!
Misread "Markdness"... Would have been equally fitting :)
Cool project! You can add simple caching for free in like a minute with CloudFlare (https://www.cloudflare.com/).
Why is this getting voted down? Is there something about cloudflare i don't know about? He said he hadn't implemented caching yet so I told him an easy way to do it...
http://markdress.org/goo.gl/zTG1q