<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 15 sept. 2012 à 21:50, MinRK a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Sat, Sep 15, 2012 at 12:39 PM, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron@ahmadia.net" target="_blank">aron@ahmadia.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Apparently, normal markdown/html is insensitive to a "/files" URL vs<br>
"files", however the preview markup requires:<br>
<br>
"/files"<br>
<br>
I'm not sure what the intended behavior is.<br></blockquote><div><br></div><div>This should be considered a bug. "files" (relative) is correct because "/files" (absolute) will break if/when url schemes change such that the notebook is served from non-root url (as is likely when multi-user is introduced). </div></div></blockquote><div><br></div><div>The problem with nbviewer is that you can ask it to render almost any url, </div><div>it has no way to know wether "files" in the requested url is legitimate or not. </div><div><br></div><div>assuming I am rendering the file </div><div><br></div><div><a href="http://my/super/project/with/a/notebook.ipynb">http://my/super/project/with/a/notebook.ipynb</a></div><div>through the url </div><div><a href="http://nbviewer.ipython.orl/url/my/super/project/with/a/notebook.ipynb">http://nbviewer.ipython.orl/url/my/super/project/with/a/notebook.ipynb</a></div><div><br></div><div>I have a link to the image <img src='./my/image.png'></div><div><br></div><div>nbviewer is asked to get</div><div><br></div><div><a href="http://nbviewer.ipython.orl/url/my/super/priject/with/a/files/">http://nbviewer.ipython.orl/url/my/super/priject/with/a/files/</a>my/image.png</div><div>(dev version is smart enough to know that this is png and don't crash and return raw data, which current version does not) </div><div><br></div><div>But `files` can be anywhere in the url. Blindly stripping it would prevent any url containing legitimates 'files' part from working. </div><div><br></div><div>Though it is still a bug which should be easier to fix once nbconvert has been refactored.</div><div>-- </div><div>Matthias</div><div><br></div><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
A<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sat, Sep 15, 2012 at 10:35 PM, Aron Ahmadia <<a href="mailto:aron@ahmadia.net">aron@ahmadia.net</a>> wrote:<br>
> We're "printing" our slides out for SC12 (they're due today), and I<br>
> noticed that images don't show up properly through nbviewer if they<br>
> are coming from Markdown. They also appear to be broken from a normal<br>
> dialogue. What's the correct way to export an IPython notebook that<br>
> uses Markdown images?<br>
><br>
> Cheers,<br>
> A<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br>
_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></blockquote></div><br></body></html>