bugfix serializing docs as frontend expects
[HS-2099] use single markdown document per resource