add a function convert markdown or html content to pdf file 

I am sorry to change the module export structure, but I have no idea how to get the new method in old export structure...