format res-lib.md