add a function convert markdown or html content to pdf file

add a function convert markdown or html content to pdf file