Add funciton outputContents for generating chapter parse result.