Extract yaml-metadata and the body of the markup using a regexp.
Add yaml as dependency