a script to split a markdown outline into its consituent parts