Move htmlFromMd function inside try-block
Add fix for #18