Adding support for render HTML and code blocks. Added support for target directory