import parsePageFromString from "./parsePageFromString" ; param { Book } book param { Page } page return { Promise < Page > } function parsePage ( book , page ) { const fs = book . getContentFS ( ) ; const file = page . getFile ( ) ; return fs . readAsString ( file . getPath ( ) ) . then ( ( content ) => { return parsePageFromString ( page , content ) ; } ) ; } export default parsePage ;