I want to be able to create a function that splits or exports every single headline in a org mode file (recursively) into a separate file.
Ideally that would be a .md file but I can also live with a .org file
Does anyone have any examples on how to achieve this? Previous answers found here/org forums were focused only on top level headers and had issues with looping over the file.
to illustrate this org file:
* Title of Heading 1 Text 1 ** Sub-Heading 2 Text 2 * Title of Heading 2 Text 3
would result in the files
Title of Heading 1.md Sub-Heading 2.md Title for Heading 2.md