Fix issue #814 where markdown in file/image descriptions was getting html stripped out incorrectly.