full edit document with yaml based attributes.
tested.
doesn't really convert the yaml though, just uses pre-tags.