Update to new librarian api for html, txt.