Add --chapters and -N to pandoc command