Catch conversion errors.

If the markdown converter raises an error for any reason (assuming the error thrown is `StandardError` or a subclass thereof), we'll print the path to the file which caused the error.

One of the items of #1105. Fixes #1238.