adding new contents to nbconvert exported files

Behzad Tabibian <[email protected]> Fri, 10 Apr 2015 00:03:16 +0200
Newsgroups gmane.comp.python.ipython.user
Message-ID <[email protected]>
Hi,

I am trying to convert my notebooks to markdown and later use jekyll to show them on a github page. In some parts of the notebooks I am using html tags such as <img src=“”/> which point to an image in local directory. 

I need to setup the config.py such that it finds these links from markdown cells, replace them with an appropriate url and copy the image to the files directory created by markdown converter. So far I have the code that parses every markdown cell and runs them through regex to detect the image tags and the paths but I don’t know how to add the file paths to output resources so that nbconvert copy the file to the export directory.

Can someone give me an idea how to do this?

Best,
Behzad
_______________________________________________
IPython-User mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/ipython-user