Fix issue when Yaml is contained in a diagnostic
Merge pull request #34 from ranford/master

Fix issue #33 when Yaml is contained in a diagnostic