documentation for keep_md