split markdown into single chapters