transform doc to md (roughly )

1st pass