Split markdown into JSON objects by chapter.